Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
356a4bf2123fc606ca19fbed9b9c535f149fdec5
/
.
/
SVIncCompil
/
Testcases
/
YosysTests
/
regression
/
issue_00956
/
top.v
blob: ee16b7f01ee1ff89e249c27926b8a28ec3f8e196 [
file
] [
log
] [
blame
]
module
inivalue
(
i_clk
,
i_val
,
o_val
);
input wire i_clk
;
input wire
[
2
:
0
]
i_val
;
output reg
[
1
:
0
]
o_val
;
reg
[
2
:
0
]
r_val
;
initial r_val
=
0
;
always
@(
posedge i_clk
)
r_val
<=
r_val
+
i_val
;
always
@(*)
o_val
=
r_val
[
1
:
0
];
endmodule