mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-22 13:41:27 +00:00
16 lines
270 B
Text
16 lines
270 B
Text
# Swapping names for two ports
|
|
logger -expect error "not declared in module header" 1
|
|
read_verilog << EOF
|
|
module gate_swap (
|
|
.a(b),
|
|
.b(a),
|
|
c
|
|
);
|
|
input a;
|
|
input b;
|
|
output c;
|
|
assign c = a & !b;
|
|
endmodule
|
|
EOF
|
|
logger -check-expected
|
|
design -reset
|