mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-08 23:35:08 +00:00
Move global ABC configuration variables into AbcConfig and initialize them properly
This commit is contained in:
parent
d0a41d4f58
commit
0f770285f3
2 changed files with 80 additions and 56 deletions
26
tests/techmap/abc_state.ys
Normal file
26
tests/techmap/abc_state.ys
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
read_verilog <<EOT
|
||||
module simple(I1, I2, O);
|
||||
input wire I1;
|
||||
input wire I2;
|
||||
output wire O;
|
||||
|
||||
assign O = I1 | I2;
|
||||
endmodule
|
||||
EOT
|
||||
abc -g all
|
||||
|
||||
design -reset
|
||||
read_verilog <<EOT
|
||||
module simple(I1, I2, O);
|
||||
input wire I1;
|
||||
input wire I2;
|
||||
output wire O;
|
||||
|
||||
assign O = I1 | I2;
|
||||
endmodule
|
||||
EOT
|
||||
techmap
|
||||
abc -g AND
|
||||
|
||||
select -assert-count 0 t:$_OR_
|
||||
select -assert-count 1 t:$_AND_
|
||||
Loading…
Add table
Add a link
Reference in a new issue