Commit f0d57b7
committed
Add CDB arbiter module and integrate into tomasulo_wrapper
Implement priority-based CDB arbiter (Week 8) that selects one FU
completion per cycle for broadcast to ROB and all RS instances.
Priority order is longest-latency-first: FP_DIV > DIV > FP_MUL >
MUL > FP_ADD > MEM > ALU.
- New RTL: cdb_arbiter.sv (combinational fixed-priority encoder)
with inline formal assertions and cover properties
- New cocotb tests: 16 unit tests for priority, propagation, stress
- Wrapper integration: replace i_cdb_write/i_cdb ports with
i_fu_complete[NumFus]/o_cdb_grant/o_cdb, instantiate arbiter
internally wired to ROB and all 6 RS instances
- Update wrapper test infrastructure with fu_complete interface
and backward-compat aliases for existing CDB helpers
- Fix two wrapper tests that used non-allocated ROB tags for CDB
broadcasts (now allocate proper producer entries first)1 parent 4cdcd73 commit f0d57b7
File tree
20 files changed
+1874
-100
lines changed- formal
- hw
- rtl/cpu_and_mem/cpu/tomasulo
- cdb_arbiter
- tomasulo_wrapper
- sim
- tests
- verif/cocotb_tests/tomasulo
- cdb_arbiter
- tomasulo_wrapper
20 files changed
+1874
-100
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments