3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-01 07:40:42 +00:00

Allow initial blocks to be disabled during tests

Wrap initial blocks with a NO_INIT so that tests for archs without register initialization feature don't fail.
This commit is contained in:
Patrick Urban 2021-09-24 21:50:26 +02:00 committed by Marcelina Kościelnicka
parent 0a72952d5f
commit acb993b27b
6 changed files with 20 additions and 4 deletions

View file

@ -1,7 +1,13 @@
module top(out, clk, in);
output [7:0] out;
input signed clk, in;
reg signed [7:0] out = 0;
reg signed [7:0] out;
`ifndef NO_INIT
initial begin
out = 0;
end
`endif
always @(posedge clk)
begin