3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-12 12:08:19 +00:00
yosys/tests/no-icarus/autowire.v
2013-01-05 11:13:26 +01:00

26 lines
301 B
Verilog

module test01(a, b, y);
input [3:0] a, b;
output [3:0] y;
assign temp1 = a + b;
assign temp2 = ~temp1;
assign y = temp2;
endmodule
// ------------------------------
module test02(a, b, y);
input [3:0] a, b;
output [3:0] y;
test01 test01_cell(A, B, Y);
assign A = a, B = b, y = Y;
endmodule