Welcome to live classics the final lab of course the multiplier.
Now at this time you guys are probably pros and I only need to go through describing the shows even
if you probably already have it working on your board.
However I will still go through and show you my version of the multiplier.
Now about you guys but this is a lot of fun for me so I hope that maybe someday we could another course.
I hope you guys go out and start teaching courses of your own.
I don't know that I could VHDL for days if you're really bored let's go.
All right.
Here it is.
Laughs 6.
The final lab multiplier running on bases to board and from the file I gave you.
He will have input 1 and input 2 which are indicated by these by Ace which is divided.
Here is the first four on the right and one second for our input two.
However it doesn't matter because we're multiplying and as you know you must play by the time they get
the same result and the product is all one the occasion is indicated by these eight ladies here.
And then we got this button right here starter which indicates for us to go and do multiplication and
reset here on the far right.
So I'm I going to give you a quick penetration how this should look run on your board.
So for example here right now I've got all zeroes which is zero.
So I should get a 0.
Now what I'm going to get in one.
However my input 2 is still zero one time zero should still be zero.
Which is as we see there now input 2.
I'm going to go ahead and make that one.
And we should see a single Elodie light up right there which is a binary indication of the number one
and we do.
And suffice it to say again it's the same thing.
I can toggle that down which is now zero times when we get to zero.
However if I start it up again.
Give us one our reset is used to clear that so I can go ahead hit the reset button and instantly clear
is that.
Now does the difference between this reset and the resets and the other lapse is that this reset isn't
indicated in the clock process.
We aren't manually inflame the thought process.
The clock is running at 50 megahertz.
So as soon as I hit that it instantly picks it up and knows that OK this is very sad.
So you go through you can do different variations and I'll do two.
Two times one is me evaluate two or two three times one is you guys three sorry three times three which
gives you a value of nine which you see there are binary 1 0 0 1 which is the binary value of 9.
So you can go through it and you can do all of these here and I'll still solve your situation which
is I don't even know what that is on me.
But that's a big number.
So you can go ahead.
This calculator out and test it.
And if the values are multiplying against each other or showing up there in binary you're getting correct
results then your life is working correctly.
And the reason we do this is because FPGA is by nature really are not designed for for most application
that's easy on the bases to board only has four dedicated multipliers and there are 18 bits wide.
So if you have an algorithm you want to run where you've got 20 bets you multiply by 20 bets.
You can't really do that unless you know how to do this type of multiplication which seems a lot more
complicated but because you just keep shifting and adding and shifting and adding But you know we can
based on our generic beer which we set up for.
That's just because we have a mess here.
But you could theoretically set that to 32 and you have a 32 by 32 bit at or you just have to find a
different way displaying it.
But and so you know if you have any problems with this you know feel free to send me an e-mail.
This is this is the toughest lab and I understand it's very difficult.
We're implementing processes.
We've got a state machine there and so it's not it's not an easy thing to go through and it'll take
you some time.
I know when I first went through it it was several hours of tinkering around and going through models
and trying to figure out how to make it work.
Throwing it on the board doesn't seem to be working right.
But you know if you don't just don't give up.
You know if you if you can't get it and you're really stuck send me an email and I'll be more than happy
to help.