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:
parent
0a72952d5f
commit
acb993b27b
6 changed files with 20 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue