Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
356a4bf2123fc606ca19fbed9b9c535f149fdec5
/
.
/
SVIncCompil
/
Testcases
/
YosysTests
/
regression
/
issue_00982
/
top.v
blob: 7751a8c4f2d7fb1a4026d2076b31dc0d0beb76af [
file
] [
log
] [
blame
]
module
lfsr_24
(
input clk
,
output dout
);
reg
[
24
:
1
]
state
=
24
'b0;
always @(posedge clk)
state <= { state[24-1:1], state[24] ~^ state[23] ~^ state[22] ~^ state[17] };
assign dout = state[24];
endmodule