mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-07-12 20:15:31 +08:00
- Split monolithic hw/sim/Makefile into modular include files (mk/cocotb-common.mk, mk/rtl-sources.mk) - Add per-module test Makefiles (cam_core_banked, cam_read_noise, cam_write_noise, match_engine_pipeline, perf, top) - Add missing simulation tools (yosys, graphviz, xdot) to devenv.nix - Fix path handling in sweep_noise.py and test modules to be HASH_BITS-aware
16 lines
446 B
Makefile
16 lines
446 B
Makefile
SIM_ROOT := $(abspath ../../..)
|
|
RTL_ROOT := $(abspath $(SIM_ROOT)/../rtl)
|
|
include $(SIM_ROOT)/mk/rtl-sources.mk
|
|
|
|
TOPLEVEL := cam_write_noise
|
|
COCOTB_TEST_MODULES := tests.modules.cam_write_noise.test_cam_write_noise
|
|
VERILOG_SOURCES := $(RTL_WRITE_NOISE)
|
|
|
|
HASH_BITS ?= 512
|
|
WRITE_NOISE_EN ?= 1
|
|
WRITE_NOISE_RATE_NUM ?= 1
|
|
WRITE_NOISE_RATE_DEN ?= 100
|
|
WRITE_NOISE_BITS ?= $(shell echo $$(( $(HASH_BITS) / 64 )))
|
|
|
|
include $(SIM_ROOT)/mk/cocotb-common.mk
|