Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use VHDL to build a structural counter. The state of the counter should be incremented only once for each clock cycle if the enable input

Use VHDL to build a structural counter. The state of the counter should be incremented only once for each clock cycle if the enable input is asserted (1). You will also need to include a synchronous reset mechanism that initializes the counter to the input value when the reset input is asserted (1). The value of the enable input does not matter if the reset is asserted. When the reset input is deasserted (0) the counter should increment with each clock cycle when the enable is asserted. If neither the reset nor the enable is asserted, then the counter state does not change. Here is the entity declaration for counter:

image text in transcribed

ENTITY Counter IS GENERIC (width : NATURAL RANGE 1 TO 64 := 8); PORT ( D : IN std_ulogic-vectr (width- 1 DOWNTO 0); oOUT std ulogic_vector (width - 1 DOWNTO O) Clock, enable, reset : IN std ulogic) END ENTITY Counter ENTITY Counter IS GENERIC (width : NATURAL RANGE 1 TO 64 := 8); PORT ( D : IN std_ulogic-vectr (width- 1 DOWNTO 0); oOUT std ulogic_vector (width - 1 DOWNTO O) Clock, enable, reset : IN std ulogic) END ENTITY Counter

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

How can speakers enhance their credibility?

Answered: 1 week ago

Question

Write Hund's rule?

Answered: 1 week ago

Question

=+Where does the focus of labor relations lie? Is it collective

Answered: 1 week ago