1 answer

Create the VHDL model of a digital system that has outputs CC0 to CC7. Each output...

Question:

Create the VHDL model of a digital system that has outputs CC0 to CC7. Each output is active (logic 1) for one clock period i

Create the VHDL model of a digital system that has outputs CC0 to CC7. Each output is active (logic 1) for one clock period in successive clock cycles. The outputs are all mutually exclusive when they are active, i.e. when one is logic I all others are logic 0. The block diagram and sample timing diagram of the system are shown below. After CC7 becomes logic 1, this pattern repeats by having CCO as logic 1 in the next clock cycle. The Reset input will take the system to an initial state where all outputs are zero. You may use behavioral or structural style of coding to develop the VHDL model. CLK еф Г Rext cca т cal CC2 -occ3 Cc4 CC ce2 CLK к нссе Сс hoca

Answers

VHDL module:

here we can use the shifter:

10000000 (at the start is rotated to the right ).

and the output reset to outputs 0.

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
--library ieee;
--use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity circuit IS
port( clk: in std_logic;-- 1hz clock
reset: in std_logic;--input
cc: out std_logic_vector(7 downto 0)-- output 4 bit wide
);
end circuit;

architecture logic11 of circuit is
begin
process(clk)
variable reg: std_logic_vector(2 downto 0):="000";
begin
if (clk'event and clk = '1') then -- otherwise update the states
if (reset = '1') then -- go to state zero if reset
reg:="UUU";-- set to use default of case to set output to 0.
else
reg:=reg+1; -- counter to count for each clock pulse
end if;
case reg is -- for output definations
when "000" =>
cc <= "10000000";
when "001" =>
cc <= "01000000";
when "010" =>
cc <= "00100000";
when "011" =>
cc <= "00010000";
when "100" =>
cc <= "00001000";
when "101" =>
cc <= "00000100";
when "110" =>
cc <= "00000010";
when "111" =>
cc <= "00000001";
when others => -- for Reset
cc <="00000000";
end case;
else
null;
end if;
end process;
end logic11;

.

Similar Solved Questions

1 answer
Please just full the fills, explanation is not necessary. Checl Vitex, Inc. manufactures a popular consumer...
please just full the fills, explanation is not necessary. Checl Vitex, Inc. manufactures a popular consumer product and it has provided the following data excerpts from its standard cost system (1) Standard Quantity or Standard Price or Rate Standard Cost Inputs Direct materials Direct labor Variabl...
1 answer
How much does it cost to operate a 80-W lamp continuously for a week if the...
How much does it cost to operate a 80-W lamp continuously for a week if the power utility rate is 25 cents/kWh....
1 answer
Silver Company manufactures kites and has the following information available for the month of April: Work...
Silver Company manufactures kites and has the following information available for the month of April: Work in process, April 1 (100% complete for materials, 43% for conversion) 35,000 units Direct materials $ 47,000 Conversion cost $ 52,000 Number of units started 87,000 u...
1 answer
An independent-measures research study uses two samples, each with n = 10 participants. If the data...
An independent-measures research study uses two samples, each with n = 10 participants. If the data produce at statistic of t = 2.095, which of the following is the correct decision for a two-tailed hypothesis test? Reject the null hypothesis with a = .05 Reject the null hypothesis with a - .01 O Fa...
1 answer
A species of grasshopper normally has 8 chromosomes, 4 of which are acrocentric and 4 of...
A species of grasshopper normally has 8 chromosomes, 4 of which are acrocentric and 4 of which are metacentric. An unusual grasshopper is discovered and is found to have 7 chromosomes, 5 of which are metacentric and 2 of which are acrocentric. Which of the following is NOT likely to be true of the u...
1 answer
Use only matlab to do this nothing else. Please attach picture of all the steps. Thanks.
Use only matlab to do this nothing else. Please attach picture of all the steps. Thanks....
1 answer
In lab a student calculates the following equilibrium concentrations for Fe(aq)3++SCN(aq)−⇋FeSCN(aq)2+ at each of the sp...
In lab a student calculates the following equilibrium concentrations for Fe(aq)3++SCN(aq)−⇋FeSCN(aq)2+ at each of the specified temperatures. Calculate ΔH∘ in units of kJmol. Report your answer to two places after the decimal. Data Table Temp (C) K 5.4 221.2 22.4 185.9...
1 answer
Puget Sound Divers is a company that provides diving services such as underwater ship repairs to...
Puget Sound Divers is a company that provides diving services such as underwater ship repairs to clients in the Puget Sound area. The company's planning budget for May appears below: Puget Sound Divers Planning Budget For the Month Ended May 31 Budgeted diving-hours (9) 250 $115,000 Revenue $460...
1 answer
How many elements, in total, are joined together to form magnesium chloride?
How many elements, in total, are joined together to form magnesium chloride?...
1 answer
Two neutron stars are separated by a distance of 1.0 1010 m. They each have a mass of 1.0 1030 kg and a radius of 1.0 1...
Two neutron stars are separated by a distance of 1.0 1010 m. They each have a mass of 1.0 1030 kg and a radius of 1.0 105 m. They are initially at rest with respect to each other. As measured from that rest frame, how fast are they moving at the following positions? ( a) Their separation has decreas...
1 answer
Could you do both questions? Thank you in advance! 2. For the reaction below: a. Predict...
Could you do both questions? Thank you in advance! 2. For the reaction below: a. Predict the most stable product(s) and draw the mechanism OK + E b. Redraw the product(s) below and label all the non-equivalent carbons. How many signals would you expect to see in the 13C NMR of the product? Predict t...
1 answer
Fnd the (a) mean, to) medan, (e) mode, and (d midrange for the data and then...
Fnd the (a) mean, to) medan, (e) mode, and (d midrange for the data and then (e) anewer the ge isted below are the weights in poands of 11 players ranomly selected from the roster of a championship sports team Ase the results ikel tobe e given question repesentative of all players in that spots inag...
1 answer
Net electrostatic force
THREE ELECTRONS ARE LOCATED AT THE VERTICES OF AN EQUILATERAL TRIANGLE. ONE AT EACH VERTEX. THE LENGTH OF ONE SIDE OF THE TRIANGLE IS 1.00NM. WHAT IS THE MAGNITUDE OFTHE NET ELECTRO STATIC FORCE ON EACH ELECTRON?...
1 answer
Local News 4/16/2020: "Google has bought over 50 properties in Sunnyvale over the past 3 years,...
Local News 4/16/2020: "Google has bought over 50 properties in Sunnyvale over the past 3 years, extending a shopping spree that totals in the billions of dollars in that Silicon Valley city alone." Why do you think Google went on such a shopping spree? What made it want to purchase so many p...
1 answer
(25 points) Consider a 1-bit and a 2-bit predictor. In the table below, indicate the prediction...
(25 points) Consider a 1-bit and a 2-bit predictor. In the table below, indicate the prediction for the branch and whether the prediction is correct. For the 1-bit predictor use the notation"1 for taken, and "0 for not taken states. For the 2- bit predictor, use "11 for strongly taken st...