Question: Design a 4 - bit prime number generator that operates in both forward ( increment ) and backward ( decrement ) directions based on a

Design a 4-bit prime number generator that operates in both forward (increment) and backward
(decrement) directions based on a direction input. The system must respond to the positive edge of
the input clock signal and include the following synchronous inputs:
Reset: Resets the generator to the smallest prime number in the sequence.
Direction: Determines whether the generator counts up (increment) or down (decrement).
The generator must cycle through the 4-bit prime numbers in the specified direction. Add any other
signals you believe are necessary if applicable.
1. Sketch a Level 1 Block Diagram showing the input and output ports.
2. Sketch the internal design block diagram
3. VHDL Implementation: Write the VHDL code to implement this generator. Feel free to choose
structural or behavioral VHDL implementation.

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!