mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-06 01:24:10 +00:00
14 lines
145 B
Plaintext
14 lines
145 B
Plaintext
read_verilog << EOF
|
|
module top(...);
|
|
input A1, A2, B, S;
|
|
output O;
|
|
|
|
assign O = S ? (A1 & B) : (A2 & B);
|
|
|
|
endmodule
|
|
EOF
|
|
|
|
simplemap
|
|
opt_share
|
|
dump
|