﻿1
00:00:05,050 --> 00:00:11,710
‫Welcome to the linear feedback shift register demonstration with the RTC 7 board we are implementing

2
00:00:11,740 --> 00:00:18,320
‫a 16 bit linear feedback shift register that is implementing the Fibonacci sequence.

3
00:00:18,490 --> 00:00:28,170
‫And what this means is we have up to 65000 535 different combinations of numbers before we have a repeat.

4
00:00:28,210 --> 00:00:37,210
‫So every time we press our button zero or clock our linear feedback shift register will generate a pseudo

5
00:00:37,210 --> 00:00:44,500
‫random number and the setup we have is a four digit seven segment display that each of the segments

6
00:00:44,500 --> 00:00:46,780
‫are connected to the J.

7
00:00:46,850 --> 00:00:52,350
‫Pieman port of the Arty's the seven through a 56 ohm resistor.

8
00:00:52,450 --> 00:01:00,490
‫We also have four digit selects on the 7:7 display that are connected using a 2 and 13 3:51 transistor

9
00:01:00,490 --> 00:01:10,060
‫connected through the 470 ohm resistor and these are all fed into the J B P port of the RTC 7 and the

10
00:01:10,060 --> 00:01:14,360
‫switch 0 we have as our Reset which is active high.

11
00:01:14,440 --> 00:01:21,400
‫Meaning if we have it high will reset our linear feedback sophister And if we have it low will not be

12
00:01:21,400 --> 00:01:22,510
‫in a reset state.

13
00:01:23,510 --> 00:01:27,810
‫And our clock is this button zero on RTC 7.

14
00:01:28,190 --> 00:01:35,690
‫So if I press my button 0 it'll bring up the next value in the linear feedback shift register which

15
00:01:35,690 --> 00:01:39,780
‫is a 4 0 0 0 and these values are displayed in hex.

16
00:01:39,800 --> 00:01:45,890
‫So if I keep pressing the button zero button you'll see it keeps generating numbers that appear to be

17
00:01:45,890 --> 00:01:46,380
‫random.

18
00:01:46,380 --> 00:01:51,770
‫There's no specific sequence to these numbers so I can just keep pressing and generating all kinds of

19
00:01:51,770 --> 00:01:57,830
‫different numbers if I press this sixty five thousand six hundred sixty five thousand five hundred thirty

20
00:01:57,830 --> 00:02:02,430
‫five times eventually I'll come back to 0 0 1.

21
00:02:02,450 --> 00:02:11,450
‫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

22
00:02:11,450 --> 00:02:17,150
‫value which is the seed value for this linear few x shift register.

23
00:02:17,170 --> 00:02:22,640
‫Anyway these combinations we can use a seed value because whatever your seed value is will dictate what

24
00:02:22,880 --> 00:02:24,140
‫your next value is.

25
00:02:24,140 --> 00:02:25,510
‫So on and so forth.

26
00:02:25,700 --> 00:02:30,620
‫However beings that we have in 0 0 1 just because it's easy for us to know.

27
00:02:30,620 --> 00:02:36,080
‫But if you want to truly generate random numbers you would want to make sure that you don't know what

28
00:02:36,080 --> 00:02:40,940
‫the seed value is and it's constantly changing so that the numbers appear to be random.

29
00:02:41,330 --> 00:02:45,550
‫And so you can just keep pressing the button through and you'll see if we follow the same pattern.

30
00:02:45,560 --> 00:02:50,240
‫Just we did before but we just keep pressing and go on for further.

31
00:02:50,250 --> 00:02:55,860
‫Notice that there's just all kinds of different numbers I mean like you said there's a 16 bit value.

32
00:02:56,020 --> 00:03:01,670
‫And with the feedback functions we have selected will have sixty five thousand five hundred thirty five

33
00:03:01,670 --> 00:03:07,560
‫different combinations and that is the linear feedback shift register demonstration running on the ardy

34
00:03:07,730 --> 00:03:08,510
‫the seven board.

