mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-07-12 20:15:31 +08:00
- add TOPK_K, FIFO_DEPTH, RESULT_SERIAL parameters to cam_params - add candidate_fifo: synchronous ready/valid FIFO for (row, score) candidates - add topk_tracker: tracks top-K candidates with clear/ready handshake - add result_serializer: serializes packed Top-K array into rank-ordered stream - refactor match_engine_pipeline from 4-state to 8-state Top-K pipeline - extend cam_top with serial Top-K interface (result_rank/row/score/last) - add backward-compatible top1_index/top1_score aliases from rank-0 beat - add comprehensive tests for all new modules
27 lines
852 B
Makefile
27 lines
852 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_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
|