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
This commit is contained in:
2026-05-26 15:45:33 +08:00
parent 1ff9a5f18b
commit e5d13917b2
6 changed files with 382 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
SIM_ROOT := $(abspath ../../..)
RTL_ROOT := $(abspath $(SIM_ROOT)/../rtl)
include $(SIM_ROOT)/mk/rtl-sources.mk
TOPLEVEL := noise_mask_bernoulli
COCOTB_TEST_MODULES := tests.modules.noise_mask_bernoulli.test_noise_mask_bernoulli
VERILOG_SOURCES := $(RTL_BERNOULLI_NOISE_MASK)
HASH_BITS ?= 512
include $(SIM_ROOT)/mk/cocotb-common.mk