Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
2b38692156ff2742b1c4c94d3b93df97f2145e0c
/
.
/
SVIncCompil
/
Testcases
/
YosysTests
/
regression
/
issue_00639
/
top.v
blob: cce152258de38c1b7e4f2205b8ec67600301ade1 [
file
]
module
top
(
input a
,
input b
,
output
[
1
:
0
]
z
);
wire n1
,
n2
;
middle M1
(.
a
(
a
),
.
b
(
b
),
.
c
(
n1
));
assign n2
=
~
n1
;
assign z
[
0
]
=
n2
;
assign z
[
1
]
=
a
&
b
;
endmodule
module
middle
(
input a
,
input b
,
output c
);
assign c
=
a
|
b
;
endmodule