Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started