0
2.6kviews
Write VHDL code for 3-bit up counter
1 Answer
0
216views

library IEEE;

use IEEE.STD_LOGIC_1164.ALL;

use IEEE.STD_LOGIC_unsigned.ALL;

 

entity COUNTER is

Port ( clk: in  STD_LOGIC;

output : out  STD_LOGIC_VECTOR (2 downto 0));

end COUNTER;

 

architecture PROGRAM of COUNTER is

signal count : std_logic_vector (2 downto 0) := "000";

begin

process(clk)

begin

if (clk'event and clk = '1') then

count <= count …

Create a free account to keep reading this post.

and 3 others joined a min ago.

Please log in to add an answer.