WEBVTT

00:13.580 --> 00:22.950
We have an example that this is a pulse with modulation design VHDL and surely you this to kind of to

00:22.950 --> 00:25.950
show the different uses of some different data types.

00:25.950 --> 00:32.910
So first of all look at the integer which we have on the generic section on line 12.

00:33.750 --> 00:44.190
We have a variable called deps which is an integer value and we're initializing it to a value of a line

00:44.190 --> 00:48.000
below that we have a line 13.

00:48.050 --> 00:55.620
We have a variable input clock which is an integer value and we're initializing to a value 50000000

00:56.070 --> 01:03.270
which is representing 30 megahertz clock and right below that we have another value for each q which

01:03.270 --> 01:07.880
is in its value and where initializing to a value of 50.

01:08.420 --> 01:15.180
And we use these generic values to represent different values which if you look in the short section

01:15.180 --> 01:19.240
on line 17 of the resolution we reuse the value bit.

01:19.440 --> 01:25.660
So if I just want to change the bit value instead of having to go through this whole entire code and

01:25.660 --> 01:32.330
change changes everywhere I can just change it in one spot and that modifies the entire entire code.

01:32.400 --> 01:34.140
And also we're using constants.

01:34.350 --> 01:41.990
If you look down on line 26 we have this constant max frequency count which is an integer value and

01:42.000 --> 01:45.030
we take the input clock and divide it by the frequency.

01:45.440 --> 01:47.700
And I could just do the math and put the number there.

01:47.700 --> 01:53.700
However this way I don't have to look below the generic section if I want to modify this pulse with

01:53.700 --> 01:55.100
modulation design.

01:55.260 --> 01:58.440
All I have to do is modify the generics.

01:58.890 --> 02:05.100
And also you can see below that we have signals and this is all taking place in the architecture section

02:05.280 --> 02:06.300
of the design.

02:06.370 --> 02:11.970
And so let's just kind of a quick little showing you the different parts of the different data types

02:11.970 --> 02:13.560
that we use in VHDL.
