10월 21, 2016

Classic RISC pipeline : instruction 실행 순서


5 stage of RISC pipeline

  1. Instruction fetch
  2. The Instruction Cache on these machines had a latency of one cycle, meaning that if the instruction was in the cache, it would be ready on the next clock cycle. During the Instruction Fetch stage, a 32-bit instruction was fetched from the cache.

  3. Instruction decode
  4. Unlike earlier microcoded machines, the first RISC machines had no microcode. Once fetched from the instruction cache, the instruction bits were shifted down the pipeline, so that simple combinational logic in each pipeline stage could produce the control signals for the datapath directly from the instruction bits. As a result, very little decoding is done in the stage traditionally called the decode stage.

  5. Execute
  6. The Execute stage is where the actual computation occurs. Typically this stage consists of an Arithmetic and Logic Unit, and also a bit shifter. It may also include a multiple cycle multiplier and divider.

  7. Memory access
  8. If data memory needs to be accessed, it is done so in this stage.

  9. Write back
  10. During this stage, both single cycle and two cycle instructions write their results into the register file.


reference


댓글 없음:

댓글 쓰기