Question

use vhdl to scroll a message on a 7 segment display

use vhdl to scroll a message on a 7 segment display

0 0
Add a comment Improve this question Transcribed image text
Answer #1

  library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

entity divfreq2 is
Port ( clk : in STD_LOGIC;
reset : in STD_LOGIC;
clko : out STD_LOGIC);
end divfreq2;

architecture Behavioral of divfreq2 is

begin

process(clk)
variable cnt:std_logic_vector(9 downto 0);
begin
if(clk'event and clk='1') then
if(reset='1') then
cnt:=(others=>'0');
clko<='0';
else
if(cnt=999) then
cnt:=(others=>'0');
clko<='1';
else
cnt:=cnt+1;
clko<='0';
end if;
end if;
end if;
end process;

end Behavioral;

Add a comment
Know the answer?
Add Answer to:
use vhdl to scroll a message on a 7 segment display
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT