tests: add ecp5 latch testcase with -abc9

This commit is contained in:
Eddie Hung 2020-05-25 16:39:16 -07:00
parent a7f2ef6d34
commit 1dce798dc5
1 changed files with 16 additions and 0 deletions

View File

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