- Single cycle:Basicly one instruction one Cycle, and critical path more long.
- Multi cycle:one instruction many Cycle, buf critical path shorter then Single cycle.Using FSM to implement one instruction.
- Break instruction execution into multiple cycles
- One clock cycle for each major task
- Instruction Fetch
- Instruction Decode and Register Fetch
- Execution, memory address computation, or branch computation
- Memory access / R-type instruction completion
- Memory read completion
- Share hardware to simplify datapath。
- pipeline:Instruction to go through a several clock. A clock to complete an Instruction, but exception of some special exceptions Instruction.
假設有一台全功能洗衣機,4項功能可以全自動做完
(1)洗衣服(20分鐘)
(2)脫水(20分鐘)
(3)烘乾(30分鐘)
(4)燙衣服(20分鐘)
這個"洗衣服的工作"必需從頭做到尾才行。
所以要收衣服,必须要等待最后流程做完。就算是只想烫下衣服,也必须4个流程走完。