mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-07-12 20:15:31 +08:00
- Add cocotb benchmark infrastructure under hw/sim/benchmarks/retrieval/ with Makefile - Implement test_retrieval_benchmark.py supporting configurable topk-k, read/write noise - Add cluster-based synthetic dataset generator with configurable bit-flip rates - Add reference model functions: match_topk, match_topk_from_scores, score_rows_with_read_noise - Add .justfile shortcuts: cam-test-retrieval-no-noise, cam-test-retrieval-read-noise - Add TOPK_K to Verilator EXTRA_ARGS via cocotb-common.mk - Add unit tests for topk sorting logic and stateful read-noise scoring
14 lines
326 B
Makefile
14 lines
326 B
Makefile
SIM_ROOT := $(abspath ../..)
|
|
RTL_ROOT := $(abspath $(SIM_ROOT)/../rtl)
|
|
include $(SIM_ROOT)/mk/rtl-sources.mk
|
|
|
|
TOPLEVEL := cam_top
|
|
COCOTB_TEST_MODULES := benchmarks.retrieval.test_retrieval_benchmark
|
|
VERILOG_SOURCES := $(RTL_CAM_TOP)
|
|
|
|
TOPK_K ?= 5
|
|
WRITE_NOISE_EN ?= 0
|
|
READ_NOISE_EN ?= 0
|
|
|
|
include $(SIM_ROOT)/mk/cocotb-common.mk
|