mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-07-12 20:15:31 +08:00
- Make cam_read_noise a pass-through module, removing all noise injection logic - Switch write noise to use noise_mask_bernoulli instead of noise_mask_grouped - Add state machine to cam_write_noise for mask generation timing - Remove noise_mask_grouped.sv (no longer needed) - Remove read noise parameters from cam_noisy and cam_top - Update simulation and benchmark code to reflect read noise removal - Sync documentation to reflect Phase 2 architecture
29 lines
877 B
Makefile
29 lines
877 B
Makefile
SIM_ROOT := $(abspath ../../..)
|
|
RTL_ROOT := $(abspath $(SIM_ROOT)/../rtl)
|
|
include $(SIM_ROOT)/mk/rtl-sources.mk
|
|
|
|
TOPLEVEL := cam_top
|
|
COCOTB_TEST_MODULES := tests.top.write_noise.test_write_noise
|
|
VERILOG_SOURCES := $(RTL_CAM_TOP)
|
|
|
|
# 写入噪声 ~1% 默认速率
|
|
WRITE_NOISE_EN := 1
|
|
WRITE_NOISE_RATE_NUM := 1
|
|
WRITE_NOISE_RATE_DEN := 100
|
|
|
|
include $(SIM_ROOT)/mk/cocotb-common.mk
|
|
|
|
# ── 速率变体子目标 ─────────────────────────────────────────────────
|
|
.PHONY: test-zero-rate test-full-rate
|
|
|
|
test-zero-rate:
|
|
$(MAKE) -B -f Makefile results.xml WRITE_NOISE_RATE_NUM=0 \
|
|
COCOTB_TEST_FILTER=zero_rate_noise
|
|
|
|
test-full-rate:
|
|
$(MAKE) -B -f Makefile results.xml WRITE_NOISE_RATE_NUM=1 WRITE_NOISE_RATE_DEN=1 \
|
|
COCOTB_TEST_FILTER=full_rate_noise
|
|
|
|
clean::
|
|
rm -rf sim_build
|