LucaSkywalker

DisplayDriver.vhd

Nov 21st, 2020
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. library IEEE;
  2. use IEEE.std_logic_1164.all;
  3. use IEEE.std_logic_arith.all;
  4. use IEEE.std_logic_misc.all;
  5. use IEEE.std_logic_unsigned.all;
  6.  
  7. entity DisplayDriver is
  8.     Port (  Data_in: IN STD_LOGIC_VECTOR(3 DOWNTO 0);
  9.                 Output_out: OUT STD_LOGIC_VECTOR(6 DOWNTO 0));
  10. end DisplayDriver;
  11.  
  12. architecture Behavioral of DisplayDriver is
  13.     begin
  14.     Main: process(Data_in)
  15.     begin
  16.         case Data_in is
  17.        
  18.             when "0000" => Output_out <= "1110111";--0
  19.             when "0001" => Output_out <= "0010010";--1
  20.             when "0010" => Output_out <= "1011101";--2
  21.             when "0011" => Output_out <= "1011011";--3
  22.             when "0100" => Output_out <= "0111010";--4
  23.             when "0101" => Output_out <= "1101011";--5
  24.             when "0110" => Output_out <= "1101111";--6
  25.             when "0111" => Output_out <= "1010010";--7
  26.             when "1000" => Output_out <= "1111111";--8
  27.             when "1001" => Output_out <= "1111010";--9
  28.             when "1010" => Output_out <= "1111110";--A
  29.             when "1011" => Output_out <= "1111111";--B
  30.             when "1100" => Output_out <= "1100101";--C
  31.             when "1101" => Output_out <= "1110111";--D
  32.             when "1110" => Output_out <= "1011101";--E
  33.             when "1111" => Output_out <= "1110100";--F
  34.             when others => Output_out <= "0000000";--catch
  35.        
  36.         end case;
  37.     end process Main;
  38. end Behavioral;
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×