Guest User

Untitled

a guest
Dec 13th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Process seg1(bcd : IN STD_LOGIC_VECTOR(3 DOWNTO 0);
  2. leds : OUT STD_LOGIC_VECTOR(1 TO 7)) IS
  3.  
  4. ran1 := bcd;
  5. BEGIN
  6. CASE bcd IS -- abcdefg
  7. WHEN"0000" => leds <= "1111110";
  8. WHEN"0001" => leds <= "0110000";
  9. WHEN"0010" => leds <= "1101101";
  10. WHEN"0011" => leds <= "1111001";
  11. WHEN"0100" => leds <= "0110011";
  12. WHEN"0101" => leds <= "1011011";
  13. WHEN"0110" => leds <= "1011111";
  14. WHEN"0111" => leds <= "1110000";
  15. WHEN"1000" => leds <= "1111111";
  16. WHEN"1001" => leds <= "1111011";
  17. WHEN OTHERS => leds <= "-------";
  18. END CASE;
  19. END PROCESS;
Add Comment
Please, Sign In to add comment