Controlling a datapath

@MJ · 0 min read
Created Date · 2024년 08월 16일 12:08
Last Update · 2024년 10월 20일 18:10

contents: 0-1. CA Intro

Controlling a datapath

main control

Control signals are derived from given instructions

01 5.jpg
01 5.jpg

  • rs is always being read

  • rt is being read except when the instruction is lw.

    - It is for loading

02 5.jpg
02 5.jpg

ALU control

  • Load / store instructions: add

  • Branch instructions: subtract

  • R-format instructions: depends on a function field in the instructions

03 4.jpg
03 4.jpg

  • Main Control Unit determines the ALUOp value

  • Whatever the funct codes are, if the opcode is lw, sw, or beq, ALU fuction is determined automatically