We have an example that this is a pulse with modulation design VHDL and surely you this to kind of to
show the different uses of some different data types.
So first of all look at the integer which we have on the generic section on line 12.
We have a variable called deps which is an integer value and we're initializing it to a value of a line
below that we have a line 13.
We have a variable input clock which is an integer value and we're initializing to a value 50000000
which is representing 30 megahertz clock and right below that we have another value for each q which
is in its value and where initializing to a value of 50.
And we use these generic values to represent different values which if you look in the short section
on line 17 of the resolution we reuse the value bit.
So if I just want to change the bit value instead of having to go through this whole entire code and
change changes everywhere I can just change it in one spot and that modifies the entire entire code.
And also we're using constants.
If you look down on line 26 we have this constant max frequency count which is an integer value and
we take the input clock and divide it by the frequency.
And I could just do the math and put the number there.
However this way I don't have to look below the generic section if I want to modify this pulse with
modulation design.
All I have to do is modify the generics.
And also you can see below that we have signals and this is all taking place in the architecture section
of the design.
And so let's just kind of a quick little showing you the different parts of the different data types
that we use in VHDL.