技術問答
技術文章
iT 徵才
聊天室
2026 鐵人賽
登入/註冊
問答
文章
Tag
邦友
鐵人賽
搜尋
0
[simple-mips] writeback stage
verilog
cpu
wtommy_fdgkhdkgh
2026-02-10 23:04:00
‧
724 瀏覽
分享至
系列文章 :
使用 Verilog 實作 in-order CPU
wb-stage
wb-stage 負責
選擇要將把什麼資料輸入到 regfile 裡面
需要時,把資料 forward 給 ex-stage ( 例如發生 load-use data hazard 的時候 )
在 wb-stage 會用到
Mux_2to1
相關程式碼
https://github.com/TommyWu-fdgkhdkgh/simple-mips/blob/main/mux/mux_2to1.v
https://github.com/TommyWu-fdgkhdkgh/simple-mips/blob/main/pipeline/wb.v
https://github.com/TommyWu-fdgkhdkgh/simple-mips/blob/main/cpu.v
Mux_2to1 #(.size(32)) mem_to_regfile
alu_result_i
ALU 計算出的結果
data_mem_i
從 data_memory 讀取出來的資料
d_memtoreg_i
選擇要使用哪一個當作給 regfile 的資料
0 : 選擇 alu_result_i,例如
add
,
addi
指令
1 : 選擇 data_mem_i,例如
lw
留言
追蹤
檢舉
熱門推薦
{{ item.subject }}
{{ item.channelVendor }}
|
{{ item.webinarstarted }}
|
{{ formatDate(item.duration) }}
直播中
立即報名
尚未有邦友留言
立即登入留言
iThome鐵人賽
參賽組數
902
組
團體組數
37
組
累計文章數
19833
篇
完賽人數
528
人
看影片追技術
看更多
{{ item.subject }}
{{ item.channelVendor }}
|
{{ formatDate(item.duration) }}
直播中
熱門tag
15th鐵人賽
16th鐵人賽
13th鐵人賽
14th鐵人賽
17th鐵人賽
12th鐵人賽
11th鐵人賽
鐵人賽
2019鐵人賽
javascript
2018鐵人賽
python
2017鐵人賽
windows
php
c#
linux
windows server
css
react
熱門問題
我想開發好看的前端頁面,但是不知道如何描述,有什麽辦法呢?
vscode 設定除錯中斷點方法
熱門回答
我想開發好看的前端頁面,但是不知道如何描述,有什麽辦法呢?
熱門文章
Vibe Coding 的現實面:當「詠唱」結束後,如何真正把 AI 程式碼推上正式機?
用動漫敘事手法設計網站:情緒節奏如何讓使用者「想看下去」
Agent.md ,打造自己的專案習慣
你可能高估 AI Agent 了:先搞懂它,再談 Agent Systems
規模化觀察能力:精通 ADK 回呼(Callbacks)以優化成本、延遲與可稽核性
IT邦幫忙
×
標記使用者
輸入對方的帳號或暱稱
Loading
找不到結果。
標記
{{ result.label }}
{{ result.account }}