Skip to content

Commit

Permalink
Fix initialization of "irq" in verilog testbench
Browse files Browse the repository at this point in the history
Signed-off-by: Clifford Wolf <clifford@clifford.at>
  • Loading branch information
cliffordwolf committed Sep 22, 2019
1 parent 881f928 commit 3f9b504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testbench.v
Expand Up @@ -75,7 +75,7 @@ module picorv32_wrapper #(
output [35:0] trace_data
);
wire tests_passed;
reg [31:0] irq;
reg [31:0] irq = 0;

reg [15:0] count_cycle = 0;
always @(posedge clk) count_cycle <= resetn ? count_cycle + 1 : 0;
Expand Down
2 changes: 1 addition & 1 deletion testbench_wb.v
Expand Up @@ -65,7 +65,7 @@ module picorv32_wrapper #(
output [35:0] trace_data
);
wire tests_passed;
reg [31:0] irq;
reg [31:0] irq = 0;
wire mem_instr;

reg [15:0] count_cycle = 0;
Expand Down

0 comments on commit 3f9b504

Please sign in to comment.