Question: Modify the MOD-15 counter code to the decade counter depicted in figure 1. The details of the added inputs are: 1. reset_n: active_LOW asynchronous reset

Modify the MOD-15 counter code to the decade counter depicted in figure 1. The details of the added inputs are: 1. reset_n: active_LOW asynchronous reset input. 2. ena_n: active_LOW enable input. The counter counts when this input is asserted, and stops counting otherwise. 3. load_n: this asynchronous active_LOW input latches the binary number present at data_in input 4. data_in: four-bit data, assearting load_n input asynchronously loads data_in to the counter

Modify the MOD-15 counter code to the decade counter depicted in figure

LIBRARY ieee; USE ieee.std_logic_1164.all; ENTITY counter IS PORT ( clock : IN STD_LOGIC; digit : OUT INTEGER RANGE 0 TO 15); END ENTITY; ARCHITECTURE behavior OF counter IS BEGIN PROCESS(clock) -- triggered by the clock VARIABLE temp : INTEGER RANGE 0 TO 15; BEGIN IF (rising_edge(clock)) THEN IF (temp := temp +1; note := ELSE END IF; END IF; digit

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 Databases Questions!