Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
356a4bf2123fc606ca19fbed9b9c535f149fdec5
/
.
/
SVIncCompil
/
Testcases
/
YosysTests
/
regression
/
issue_00639
/
top.v
blob: cce152258de38c1b7e4f2205b8ec67600301ade1 [
file
] [
log
] [
blame
]
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