‫Welcome to the linear feedback shift register demonstration with the RTC 7 board we are implementing
‫a 16 bit linear feedback shift register that is implementing the Fibonacci sequence.
‫And what this means is we have up to 65000 535 different combinations of numbers before we have a repeat.
‫So every time we press our button zero or clock our linear feedback shift register will generate a pseudo
‫random number and the setup we have is a four digit seven segment display that each of the segments
‫are connected to the J.
‫Pieman port of the Arty's the seven through a 56 ohm resistor.
‫We also have four digit selects on the 7:7 display that are connected using a 2 and 13 3:51 transistor
‫connected through the 470 ohm resistor and these are all fed into the J B P port of the RTC 7 and the
‫switch 0 we have as our Reset which is active high.
‫Meaning if we have it high will reset our linear feedback sophister And if we have it low will not be
‫in a reset state.
‫And our clock is this button zero on RTC 7.
‫So if I press my button 0 it'll bring up the next value in the linear feedback shift register which
‫is a 4 0 0 0 and these values are displayed in hex.
‫So if I keep pressing the button zero button you'll see it keeps generating numbers that appear to be
‫random.
‫There's no specific sequence to these numbers so I can just keep pressing and generating all kinds of
‫different numbers if I press this sixty five thousand six hundred sixty five thousand five hundred thirty
‫five times eventually I'll come back to 0 0 1.
‫Now if I want to reset at any point in time I can slide my switch up which puts me back to my 0 0 1
‫value which is the seed value for this linear few x shift register.
‫Anyway these combinations we can use a seed value because whatever your seed value is will dictate what
‫your next value is.
‫So on and so forth.
‫However beings that we have in 0 0 1 just because it's easy for us to know.
‫But if you want to truly generate random numbers you would want to make sure that you don't know what
‫the seed value is and it's constantly changing so that the numbers appear to be random.
‫And so you can just keep pressing the button through and you'll see if we follow the same pattern.
‫Just we did before but we just keep pressing and go on for further.
‫Notice that there's just all kinds of different numbers I mean like you said there's a 16 bit value.
‫And with the feedback functions we have selected will have sixty five thousand five hundred thirty five
‫different combinations and that is the linear feedback shift register demonstration running on the ardy
‫the seven board.