mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-08 15:25:08 +00:00
26 lines
367 B
Text
26 lines
367 B
Text
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_
|