Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
3f4e38faba84ce292e5f05601b70dd598f686411
/
.
/
SVIncCompil
/
Testcases
/
Icarus
/
ivltests
/
pr541.v
blob: 631ab7919be698031283e1db400643070baebe66 [
file
] [
log
] [
blame
]
module
example
;
reg
[
2
:
0
]
rhs
;
wire
[
5
:
0
]
lhs
=
-
rhs
;
integer ix
;
initial
begin
$monitor
(
"%b[5:0] = - %b[2:0]"
,
lhs
,
rhs
);
for
(
ix
=
0
;
ix
<=
7
;
ix
=
ix
+
1
)
begin
rhs
=
ix
;
#100 ;
end
end
endmodule