Question: the topic is about wrting vhdl code, Please provide general information about the attached diagram that I can include in my report just information no
the topic is about wrting vhdl code, Please provide general information about the attached diagram that I can include in my report just information no need for code, given requirment is If reset is
the count value becomes
Otherwise:
If enable is
When the rising edge of the clk signal occurs,
If updown is the count value increments,
If updown is the count value decrements.
Note:
The counted value can be held as an intermediate value. After defining itthe initial value can be assigned as follows:
signal count: stdlogicvectordownto :;
For the rising edge of the clk signal, you can use ifrisingedgeclk
To convert stdlogicvector to integer, use the convintegerfunction
To convert an integer to stdlogicvector, use the convstdlogicvectorfunction
To find the tens place of the counted value, divide by :
bcdconvstdlogicvectorconvintegerinputvalue;
To find the units place of the counted value, take the modulus in base :
bcdconvstdlogicvectorconvintegerinputvaluemod ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
