Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Intro Physics Homework Help
Advanced Physics Homework Help
Precalculus Homework Help
Calculus Homework Help
Bio/Chem Homework Help
Engineering Homework Help
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
Intro Physics Homework Help
Advanced Physics Homework Help
Precalculus Homework Help
Calculus Homework Help
Bio/Chem Homework Help
Engineering Homework Help
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Homework Help
Engineering and Comp Sci Homework Help
VHDL code for binary counter
Reply to thread
Message
[QUOTE="tetooo_2006, post: 3439869, member: 347053"] [h2]Homework Statement [/h2] structure or behavior VHDL code of a 5-bits binary counter with a sync. load signal to preset the counter to a specific initial state. the output of the counter (Q0 to Q4) are connected to a binary decoder that shows the state of the counter.[h2]Homework Equations[/h2] [h2]The Attempt at a Solution[/h2] I wrote the code of 5 bits counter [code] LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.numeric_std.all; ENTITY counter IS PORT ( count : OUT unsigned (4 DOWNTO 0); load : IN STD_LOGIC; pre :IN unsigned (4 DOWNTO 0); Clk : IN STD_LOGIC); END counter; ARCHITECTURE Behavioral OF counter IS SIGNAL c : unsigned(4 DOWNTO 0) := "00000"; BEGIN count <= c; PROCESS(Clk) BEGIN IF( rising_edge(Clk) ) THEN IF(load = '1') THEN c <= pre; ELSE c <= c + 1; END IF; END IF; END PROCESS; END Behavioral; [/code] I want to connect the output to a binary decoder that shows the state of the counter how can i do that? [/QUOTE]
Insert quotes…
Post reply
Forums
Homework Help
Engineering and Comp Sci Homework Help
VHDL code for binary counter
Back
Top