From 0b965d579e2df962b91dac141eef6668f932e992 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Mon, 5 Apr 2021 16:02:45 -0500 Subject: fpga: lib: Fix simulation of axi_fir_filter The always(*) block was never executing in some simulators because there were no signals on the right-hand side in the block. Changing it to an initial block ensures it always runs. --- fpga/usrp3/lib/rfnoc/axi_fir_filter.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpga/usrp3/lib') diff --git a/fpga/usrp3/lib/rfnoc/axi_fir_filter.v b/fpga/usrp3/lib/rfnoc/axi_fir_filter.v index 4fffab8af..7efa60a97 100644 --- a/fpga/usrp3/lib/rfnoc/axi_fir_filter.v +++ b/fpga/usrp3/lib/rfnoc/axi_fir_filter.v @@ -116,7 +116,7 @@ module axi_fir_filter #( end // Coefficients are static end else begin - always @(*) begin + initial begin for (k = 0; k < NUM_SLICES; k = k + 1) begin coeffs[k] <= COEFFS_VEC[COEFF_WIDTH*k +: COEFF_WIDTH]; coeff_load_stb <= 1'b1; -- cgit v1.2.3