More about single-cycle machines
Inputs
- CS: Chip Select
- RD: Read?
- OE: Output Enable
CS | RD | OE | $I_2$ | $I_1$ | $I_0$ | $A_1$ | $A_0$ | $O_2$ | $O_1$ | $O_0$ |
---|---|---|---|---|---|---|---|---|---|---|
1 | 0 | 0 | 0 | 1 | 1 | 0 |
for(int 1, i < 1, ++i){
do stuff
}
Design a conditional branch instruction in assembly?
Imm Gen: Immediate Generation
BLT R1, R2, imm
if R1 < R2
PC = PC + imm