How dkolhe21/cdac_project works
This repository implements a SystemVerilog multicore cache-coherence design: a tile’s cache request is handled by its L1 MESI controller, coordinated by the directory, and backed by an L2 bank. The RTL tree identifies these principal runtime blocks, while the sampled reference model describes directory/L1 transitions and bank state. Directed cocotb checks cover owner eviction, concurrent upgrades, and per-VC FIFO ordering. RTL internals and top-level wiring were not excerpted, so those links are shown as unverified rather than asserted; no README content was provided.
Main entry points: dir_ctrl.sv Directory Control · l1_mesi_ctrl.sv L1 MESI · tb_common.py Cocotb Helpers · directed_owner_evict.py Owner Eviction Check
Components 11
Coherence RTL
- L1 MESI
rtl/l1/l1_mesi_ctrl.sv - Directory Control
rtl/directory/dir_ctrl.sv - L2 Control
rtl/l2/l2_ctrl.sv - L2 Bank
rtl/l2/l2_bank.sv - Tile Protocol Types
rtl/pkg/tile_pkg.sv
Behavior Checks
- Cocotb Helpers
tb_self_test/l1_dir/tb_common.py - Coherence Shadow
tb/ref_model/shadow_l1_dir.py - Owner Eviction Check
tb_rtl_evidence/directed_owner_evict/directed_owner_evict.py - Upgrade Race Check
tb_rtl_evidence/directed_upgrade_race/directed_upgrade_race.py - VC0 FIFO Check
tb_rtl_evidence/directed_vc0_fifo/directed_vc0_fifo.py
Other components
- Core Requester
Connections 12
- Core Requester → L1 MESI: issues request
- L1 MESI → Directory Control: exchanges messages
- Directory Control → L1 MESI: forwards messages
- Directory Control → L2 Control: requests bank access
- L2 Control → L2 Bank: accesses bank
- Cocotb Helpers → Coherence Shadow: supplies events
tb/ref_model/shadow_l1_dir.py - Owner Eviction Check → Cocotb Helpers: uses helpers
- Upgrade Race Check → Cocotb Helpers: uses helpers
- VC0 FIFO Check → Cocotb Helpers: uses helpers
- Owner Eviction Check → Directory Control: checks behavior
- Upgrade Race Check → L1 MESI: checks behavior
- VC0 FIFO Check → Directory Control: checks ordering