Home › Practice › RTL Design › 4-bit BIST LFSR pattern generator
4-bit BIST LFSR pattern generator
EasyDFTRTLsequential
Build a 4-bit maximal-length linear feedback shift register (LFSR) used in built-in self-test (BIST) to generate pseudo-random test patterns.
rstis synchronous, active-high: on a risingclkedge withrst=1,qloads the non-zero seed4'b0001.- Otherwise, when
en=1, shift right and feed back the XOR of the two lowest bits into the MSB:q <= {q[0] ^ q[1], q[3:1]}. - When
en=0,qholds its value.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.