fpga: Fix errors found by linting with vsim
Original-commit: 5c7237fb407cfccaee205980d97e40ce10768c2a
This commit is contained in:
@@ -33,6 +33,7 @@ SIM_TOP = arm_deframer_tb
|
||||
|
||||
SIM_SRCS = $(abspath \
|
||||
$(SIM_PROTORFNOC_SRCS) \
|
||||
$(RFNOC_SRCS) \
|
||||
arm_deframer_tb.sv \
|
||||
)
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ module axis_width_conv_tb();
|
||||
// - words: The size of the packet in words
|
||||
// - inst: The instance number of the module to send to
|
||||
// - gaps: If 1 then insert bubble cycles randomly in the stream
|
||||
task push_test_pkt(input integer words, input integer inst, input logic gaps);
|
||||
task automatic push_test_pkt(input integer words, input integer inst, input logic gaps);
|
||||
begin
|
||||
logic [(MAX_IN_WORDS*WORD_W)-1:0] data = 0;
|
||||
logic [MAX_IN_WORDS-1:0] keep = 0;
|
||||
@@ -217,7 +217,7 @@ module axis_width_conv_tb();
|
||||
// - inst: The instance number of the module to send to
|
||||
// - gaps: If 1 then insert bubble cycles randomly in the stream
|
||||
// - ok: If 1 then all sanity checks have passed
|
||||
task pull_test_pkt(input integer words, input integer inst, input logic gaps, output logic ok);
|
||||
task automatic pull_test_pkt(input integer words, input integer inst, input logic gaps, output logic ok);
|
||||
begin
|
||||
logic [(MAX_OUT_WORDS*WORD_W)-1:0] pull_data = 0;
|
||||
logic [MAX_OUT_WORDS-1:0] pull_keep = 0;
|
||||
|
||||
@@ -36,8 +36,7 @@ module cap_pattern_verifier_tb();
|
||||
.PATTERN("RAMP"),
|
||||
.RAMP_START(14'h0000),
|
||||
.RAMP_STOP(14'h3FFF),
|
||||
.RAMP_INCR(14'h0001),
|
||||
.NTH_CYCLE(1)
|
||||
.RAMP_INCR(14'h0001)
|
||||
) dut0 (
|
||||
.clk(clk),
|
||||
.rst(rst),
|
||||
@@ -54,8 +53,7 @@ module cap_pattern_verifier_tb();
|
||||
.PATTERN("RAMP"),
|
||||
.RAMP_START(14'h0100),
|
||||
.RAMP_STOP(14'h0FFF),
|
||||
.RAMP_INCR(14'h0001),
|
||||
.NTH_CYCLE(1)
|
||||
.RAMP_INCR(14'h0001)
|
||||
) dut1 (
|
||||
.clk(clk),
|
||||
.rst(rst),
|
||||
|
||||
@@ -29,7 +29,17 @@ module chdr_dechunker_tb();
|
||||
reg [31:0] o_xfer_count = 0, i_xfer_count = 0;
|
||||
reg [63:0] o_last_tdata = 0;
|
||||
|
||||
|
||||
reg [63:0] i_tdata;
|
||||
reg i_tlast;
|
||||
reg i_tvalid;
|
||||
wire i_tready;
|
||||
|
||||
wire [63:0] o_tdata;
|
||||
wire o_tlast, o_tvalid, o_tready;
|
||||
|
||||
reg result;
|
||||
|
||||
|
||||
always #10 clk = ~clk;
|
||||
|
||||
initial $dumpfile("chdr_dechunker_tb.vcd");
|
||||
@@ -106,15 +116,6 @@ module chdr_dechunker_tb();
|
||||
#100 reset = 0;
|
||||
end
|
||||
|
||||
reg [63:0] i_tdata;
|
||||
reg i_tlast;
|
||||
reg i_tvalid;
|
||||
wire i_tready;
|
||||
|
||||
wire [63:0] o_tdata;
|
||||
wire o_tlast, o_tvalid, o_tready;
|
||||
|
||||
reg result;
|
||||
initial begin
|
||||
quantum <= 8;
|
||||
i_tvalid <= 0;
|
||||
|
||||
Reference in New Issue
Block a user