Question: Write a VHDL code that implements an FSM for a 3 - bit down counter that transitions through the terms of a sequence where the

Write a VHDL code that implements an FSM for a3-bit down counter that transitions through the terms of a sequence
where the terms are defined asan=2an-1-an-2.The initial terms are inputs into the
VHDL design and make sure synchronous active high reset is used to reset the
FSM.The initial terms are 3-bit non-zero positive values such that a1>a2.Write a test bench to test the counter's reset and test the counter with two sets of inputs.
Comment your VHDL code and test bench. Please test the simulation and check the waveform. test a1=6,a2=4for the first case and a1=5, a2=3 for the second case.
Case 1 answers should be 6,4,2,0,6. Case 2 answers should be 5,3,1,5. Coding in Vivado so please test it and show a waveform picture.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!