Logic circuits
What is a typical use of a linear feedback shift register (LFSR), which feeds the XOR of some outputs of a shift register back to its input?
- AGenerating pseudo-random patterns, such as test patterns, and computing CRCs
- BMeasuring precise time
- CAmplifying analog signals
Show answer and explanation
Answer: A. Generating pseudo-random patterns, such as test patterns, and computing CRCs
With properly chosen taps, an n-bit LFSR cycles through all 2ⁿ − 1 nonzero states, producing a seemingly random maximal-length sequence (m-sequence). Built only from XORs and flip-flops, it is used for built-in self-test (BIST) pattern generation and response compaction and CRC calculation in protocols such as Ethernet. It is also used in scramblers that even out the 0s and 1s in data to avoid long runs of the same value. Because the linear sequence can be predicted from a short stretch of output, an LFSR on its own is unsuitable for cryptographic randomness.
- A. Correct. It is used for pseudo-random and test patterns and CRCs.
- B. It is not used for measuring precise time.
- C. An LFSR is a digital circuit and does not amplify analog signals.