3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-04 14:36:10 +00:00
yosys/tests/arch/ecp5/latches_abc9.ys
2026-06-17 17:36:32 +02:00

13 lines
300 B
Text

read_verilog <<EOT
module top(input e, d, output q);
reg l;
always @*
if (e)
l = ~d;
assign q = ~l;
endmodule
EOT
# Can't run any sort of equivalence check because latches are blown to LUTs
synth_ecp5 -abc9 -latches auto
select -assert-count 2 t:LUT4
select -assert-none t:LUT4 %% t:* %D