作者waterdisney (飞过鹰族的讪笑)
看板TransCSI
标题Re: [问题] 各种周期...
时间Thu Mar 1 00:33:45 2007
※ 引述《ahongyeh (小叶子)》之铭言:
: 指令周期;Instruction Cycle
执行一道完整的指令所用的cycle
: 时序周期;我不清楚...
: 机器周期;Machine Cycle
: 汇流排周期;Bus Cycle
跟 memory所使用的cycle有关
: 提取周期;Fetch Cycle
从instruction memory中抓取指令
: 执行周期;Execution Cycle
使用ALU..共使用多少个cycle
: 感谢您的帮忙~~
我们先搞清楚三种机器的型别
分别为 Single cycle machine
Multiple cycle machine
Pipeline
若我们以pipeline的执行来看
我们可定义一道指令执行时所经过的阶段(Stage)
IF ID EX MEM WB
Instruction Fetch -> Instruction Decode -> Execution -> Memory -> write back
to register
IF阶段:使用到 Program counter..及Instruction memory
ID阶段:最主要是将指令解码,使用到暂存器(register)的读取
EX阶段:使用ALU等功能单元,实际执行指令的阶段( + - and or )
MEM Stage: 使用memory..将指令load出来或store回去
WB 阶段:使用到 register..将资料写回register
如果题目是问single cycle machine 或者multiple cycle machine..
那算法又不一样了。
不过一般只会考到pipeline..所以先把上面这些搞清楚就好罗。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.233.71.32