Files
Mini-Nav/hw/sim/mk/rtl-sources.mk
SikongJueluo e5d13917b2 feat(cam): add Bernoulli noise mask module and cocotb tests
- Add noise_mask_bernoulli.sv RTL module for probabilistic masking
- Add cocotb test suite with reset, threshold, determinism, and distribution checks  
- Update rtl-sources.mk to include new module
- Fix PYTHONPATH in devenv.nix shell hook
2026-05-26 19:41:17 +08:00

28 lines
936 B
Makefile

ifndef RTL_ROOT
$(error RTL_ROOT must be set before including mk/rtl-sources.mk)
endif
RTL_RANDOM := $(RTL_ROOT)/random/random128.sv
RTL_NOISE_MASK := $(RTL_ROOT)/noise/noise_mask_grouped.sv
RTL_BERNOULLI_NOISE_MASK := $(RTL_ROOT)/noise/noise_mask_bernoulli.sv $(RTL_RANDOM)
RTL_WRITE_NOISE := $(RTL_NOISE_MASK) $(RTL_RANDOM) $(RTL_ROOT)/noise/cam_write_noise.sv
RTL_READ_NOISE := $(RTL_NOISE_MASK) $(RTL_RANDOM) $(RTL_ROOT)/noise/cam_read_noise.sv
RTL_CAM_CORE_BANKED := $(RTL_ROOT)/core/cam_core_banked.sv
RTL_MATCH_ENGINE := \
$(RTL_ROOT)/core/popcount_pipeline.sv \
$(RTL_ROOT)/core/candidate_fifo.sv \
$(RTL_ROOT)/core/topk_tracker.sv \
$(RTL_ROOT)/core/result_serializer.sv \
$(RTL_ROOT)/core/match_engine_pipeline.sv
RTL_CAM_NOISY := \
$(RTL_CAM_CORE_BANKED) \
$(RTL_WRITE_NOISE) \
$(RTL_READ_NOISE) \
$(RTL_MATCH_ENGINE) \
$(RTL_ROOT)/cam_noisy.sv
RTL_CAM_TOP := $(RTL_CAM_NOISY) $(RTL_ROOT)/cam_top.sv