mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
Merge pull request #2082 from YosysHQ/eddie/abc9_scc_fixes
abc9: fixes around handling combinatorial loops
This commit is contained in:
commit
45cd323055
3 changed files with 18 additions and 3 deletions
13
tests/arch/ecp5/latches_abc9.ys
Normal file
13
tests/arch/ecp5/latches_abc9.ys
Normal file
|
@ -0,0 +1,13 @@
|
|||
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
|
||||
select -assert-count 2 t:LUT4
|
||||
select -assert-none t:LUT4 %% t:* %D
|
Loading…
Add table
Add a link
Reference in a new issue