Skip to content

Commit

Permalink
added one more line of code as an example in dinocpu assignment 3 ins…
Browse files Browse the repository at this point in the history
…truction page
  • Loading branch information
studyztp committed Feb 1, 2024
1 parent 812a73e commit 642e3d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/DINO CPU/_posts/2000-04-01-assignment3.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ val id_ex_ctrl = Module(new StageReg(new IDEXControl))

...

// set the aluop signal in the IDEX stage register at decode stage
id_ex_ctrl.io.in.ex_ctrl.aluop := control.io.aluop
// get the aluop signal from the IDEX stage register at execute stage
aluControl.io.aluop := id_ex_ctrl.io.data.ex_ctrl.aluop
```

Specifically in `id_ex_ctrl.io.in.ex_ctrl.aluop` you have to specify `ex_ctrl.aluop` since you are are getting a signal out of the `ex_ctrl` part of the `IDEXControl` bundle.
Expand Down

0 comments on commit 642e3d2

Please sign in to comment.