Skip to content
Informatikk notater
GitHubLinkedIn

More about single-cycle machines

single cycle machine

Inputs

  • CS: Chip Select
  • RD: Read?
  • OE: Output Enable
CSRDOE$I_2$$I_1$$I_0$$A_1$$A_0$$O_2$$O_1$$O_0$
1000110
for(int 1, i < 1, ++i){
  do stuff
}

risc v

Design a conditional branch instruction in assembly?

Imm Gen: Immediate Generation

BLT R1, R2, imm
  if R1 < R2
    PC = PC + imm

Interrupts

Traps