WEBVTT

00:13.070 --> 00:20.540
There is a universal shift register which you know file and I just want it to show you just some of

00:20.540 --> 00:22.740
the uses of the different keywords.

00:22.760 --> 00:29.280
So starting with Line 1 we have a comment just us are just kind of a better thing going on.

00:29.330 --> 00:36.480
And then we've got the library which you notice is highlighted in blue and I Tripoli afterwards is in

00:36.510 --> 00:37.410
red.

00:37.430 --> 00:39.310
We've got the use of Tripoli.

00:39.320 --> 00:46.620
Use Tripoli that gives us allows us to use standard logic vector and Arnstein and sign data types.

00:47.150 --> 00:53.320
And if you look we have entity generic our data with is a type of integer.

00:53.480 --> 01:00.070
RSA is a standard logic vector by on line 11 is a standard logic vector.

01:00.260 --> 01:08.480
This is also standard logic vector and reset clock our standard logic is nimbler that you can see we

01:08.480 --> 01:11.980
have the architecture line 17.

01:11.990 --> 01:19.710
We have a signal which we call a read on line 19 which is the standard logic vector data with why it

01:19.940 --> 01:21.670
minus one down to zero.

01:21.980 --> 01:28.910
So that tells us when we have a data with a we take our with is replace it with 8 8 last one to 7 down

01:28.910 --> 01:29.580
to zero.

01:29.750 --> 01:36.650
So that gives us an a register of 8 bits wide because seven down to zero is a total of eight different

01:36.650 --> 01:37.340
values

01:40.280 --> 01:43.810
and looking below that you can see we've got to begin keyword.

01:43.910 --> 01:51.920
We've got if rising edge is a key word as well which indicates that our clock went a toggle state.

01:51.920 --> 01:57.860
If it's on the rising edge then it evaluates to true if it's on the following edge.

01:57.860 --> 02:00.390
It does not.

02:00.710 --> 02:08.210
And also you look we have a case statement with a win win zero which we're taken our case of x which

02:08.210 --> 02:12.290
is an implied if standard logic vector to down to zero.

02:12.290 --> 02:14.060
So that gives us guys a three

02:18.930 --> 02:24.870
and you can see all the different values that have an ass when it is 0 0.

02:25.020 --> 02:29.310
We hold it Seirawan right shift 1 0.

02:29.320 --> 02:40.080
We left shift and also we have this one others which is an error code which gives us that when others

02:40.080 --> 02:41.500
are a register.

02:41.730 --> 02:47.340
We have to just do this evaluation X which is just like a undetermined value if you have a value of

02:47.340 --> 02:53.790
x that's just saying that you it's more or less just use for your testbench purposes and you looking

02:53.820 --> 02:59.340
to cast Bensons you have a value of x that just means it's undefined or uninitialized or it's an air

02:59.460 --> 02:59.800
value.

02:59.820 --> 03:04.910
Basically that because it can only be a 1 or 0 if even then X it's going to throw an error or make lines

03:04.920 --> 03:05.220
red.

03:05.220 --> 03:10.290
This makes it easier to to catch when you have errors and such is kind of a quick little overview of

03:10.290 --> 03:14.400
how just different keywords and what they look like in the VHDL.
