Dec To Display
Dec To Display
-- Company:
-- Engineer:
--
-- Create Date: 11.10.2024 09:49:14
-- Design Name:
-- Module Name: decToDisplay - Behavioral
-- Project Name:
-- Target Devices:
-- Tool Versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity decToDisplay is
Port ( a : in STD_LOGIC_VECTOR (3 downto 0);
y : out STD_LOGIC_VECTOR (0 to 6));
end decToDisplay;
begin
with a select
tmp<=
"0110000" when "0001",
"1101101" when "0010",
"1111001" when "0011",
"0110011" when "0100",
"1011011" when "0101",
"1011111" when "0110",
"1110000" when "0111",
"1111111" when "1000",
"11100111" when "1001",
"0000000" when others;
y<=tmp;
end Behavioral;