summaryrefslogtreecommitdiff
path: root/tests/no-icarus/autowire.v
blob: 3633d4274cf45407a807fc227d1b291706b80b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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