mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-07-12 20:15:31 +08:00
refactor(cam): remove read noise from noise architecture (Phase 2)
- 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
This commit is contained in:
@@ -5,13 +5,7 @@ module cam_noisy #(
|
||||
parameter bit WRITE_NOISE_EN = 1'b1,
|
||||
parameter int WRITE_NOISE_RATE_NUM = 1,
|
||||
parameter int WRITE_NOISE_RATE_DEN = 100,
|
||||
parameter int WRITE_NOISE_BITS = 8,
|
||||
parameter logic [63:0] WRITE_NOISE_SEED = 64'hB504_F32D_B504_F32D,
|
||||
parameter bit READ_NOISE_EN = 1'b1,
|
||||
parameter int READ_NOISE_RATE_NUM = 1,
|
||||
parameter int READ_NOISE_RATE_DEN = 100,
|
||||
parameter int READ_NOISE_BITS = 8,
|
||||
parameter logic [63:0] READ_NOISE_SEED = 64'h6A09_E667_F3BC_C909
|
||||
parameter logic [63:0] WRITE_NOISE_SEED = 64'hB504_F32D_B504_F32D
|
||||
) (
|
||||
input logic clk,
|
||||
input logic rst_n,
|
||||
@@ -42,7 +36,6 @@ module cam_noisy #(
|
||||
.WRITE_NOISE_EN (WRITE_NOISE_EN),
|
||||
.WRITE_NOISE_RATE_NUM (WRITE_NOISE_RATE_NUM),
|
||||
.WRITE_NOISE_RATE_DEN (WRITE_NOISE_RATE_DEN),
|
||||
.WRITE_NOISE_BITS (WRITE_NOISE_BITS),
|
||||
.WRITE_NOISE_SEED (WRITE_NOISE_SEED)
|
||||
) u_write_noise (
|
||||
.clk (clk),
|
||||
@@ -73,13 +66,7 @@ module cam_noisy #(
|
||||
);
|
||||
|
||||
// ── Read noise pipeline ──
|
||||
cam_read_noise #(
|
||||
.READ_NOISE_EN (READ_NOISE_EN),
|
||||
.READ_NOISE_RATE_NUM (READ_NOISE_RATE_NUM),
|
||||
.READ_NOISE_RATE_DEN (READ_NOISE_RATE_DEN),
|
||||
.READ_NOISE_BITS (READ_NOISE_BITS),
|
||||
.READ_NOISE_SEED (READ_NOISE_SEED)
|
||||
) u_read_noise (
|
||||
cam_read_noise u_read_noise (
|
||||
.clk (clk),
|
||||
.rst_n (rst_n),
|
||||
.valid_i (core_rd_valid),
|
||||
|
||||
Reference in New Issue
Block a user