Welcome the lab to Rio in this lab we created a shift register.
And so in this video I'm going to show you the complete solution on the basis to form.
Now that one wasn't that hard was it a lot to do this is a little bit more difficult.
And that didn't give you a complete solution and so you're going to have to come up with some of this
on your own.
However if you're if you are stuck Don't worry it isn't a safe situation.
When I first started learning VHDL I had many many struggles.
I don't you mean the same but as I was so feel Feel free to email me and let you know any problems you
have I'm more than happy to help.
Here is the lab to the shift register running on the bases to board from the U.S. a file I gave you.
You've got your outputs A B C and D which are indicated by the rightmost Ltd's on the front of your
board and then your data in is this first time switch right here and then your clock is this button
right here.
And the reset button on the far right over here.
Now where is the shift register works.
Is my data in pen.
Any time I actually get a clock signal which is indicated by I'm pushing this button right here a piece
of data is going to be represented on the shift register.
So for example here right now my data is zero.
So if I hit my clock you won't see anything on the shift register which is indicated on the ladies.
Now if I give myself a data in one and I hit that button you'll see I've got the one on the list the
lights up to indicate a bit of one in that shifted his position.
Now I knew this fact and was zero and hit the clock.
It's going to shift this bit to the right which you see there it shifts over there.
And if I hit the clock again it'll shift once more.
Now if I turn my data in bet given a logical high turn that on a clock and see I've got another bet
that shows up on the shift register right there.
And so I can just do this I can go through all toggle down turn them on if I can do.
And this is how like when you see a circuit that does like a twinkling thing you'll see we're basically
just doing this and real fast succession where you got every other bet.
Lights it up type of deal.
And then also over here you got the reset button.
Now I know from the VHDL code you couldn't load on here the reset all it resets on clock cycles so if
I hit the reset right now nothing's going to happen.
But what I have to do is have to reset down the clock button and it resets the entire shift register.
So for example I go through here fill the whole shift register up.
Now if I hit the reset nothing happens.
That's because it needs to happen on a clock edge.
So if I hold the reset down and hit a clock then there you go.
Clears the shift register.
And the reason it put the clock on this button is because this board is running inherently at 50 megahertz
and if 50 megahertz if I run out here you ask yourself of that switch all those oldies turn on just
like that.
You you can't you wouldn't be able to tell what was going on.
So that's the reason the clock right here so you can actually physically see and what's actually going
on inside of the board.