Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wu Yuzhang
ustc_ca2021_lab
Commits
1e1df511
Commit
1e1df511
authored
Apr 18, 2021
by
Wu Yuzhang
Browse files
Update ControlUnit.v
parent
033c0ec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lab2/SourceCode/ControlUnit.v
View file @
1e1df511
...
...
@@ -20,7 +20,7 @@
// JalrD==1 表示Jalr指令到达ID译码阶段
// RegWriteD 表示ID阶段的指令对应的寄存器写入模式
// MemToRegD==1 表示ID阶段的指令需要将data memory读取的值写入寄存器,
// MemWriteD 共4bit,
采用独热码格式
,对于data memory的32bit字按byte进行写入,MemWriteD=0001表示只写入最低1个byte,和xilinx bram的接口类似
// MemWriteD 共4bit,
为1的部分表示有效
,对于data memory的32bit字按byte进行写入,MemWriteD=0001表示只写入最低1个byte,和xilinx bram的接口类似
// LoadNpcD==1 表示将NextPC输出到ResultM
// RegReadD 表示A1和A2对应的寄存器值是否被使用到了,用于forward的处理
// BranchTypeD 表示不同的分支类型,所有类型定义在Parameters.v中
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment