Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
36edd2bd845c2e56e36b75d2696ae7a98914e2a8
/
.
/
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