Question: in assembly : Write a function to implement an 8 - bit LFSR - based pseudo - random number generator. The function should take the
in assembly : Write a function to implement an bit LFSRbased pseudorandom
number generator. The function should take the feedback polynomial
and the seed as parameters in registers $ and $ respectively,
and it should generate a random number in register $
Note: use the code on the right to test your function.
Two important characteristics of an LFSR are the Feedback
Polynomial, which determines the flipflops FFs that are XORed to
compute the shifted bit, and the seed which determines the initial
content of the FFs Depending on the Feedback polynomial, the LFSR
can generate a maximallength sequence without repetition, or it
may not. The seed can be any number other than
The Feedback polynomial for the LFSR shown can be represented as
Note that indicates that there is feedback connection,
while indicates that there is no feedback connection.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
