Binary to 7 segment LIBRARY ieee; USE ieee.std_logic_1164.all; ENTITY bin_7segment IS PORT(m:IN STD_LOGIC_VECTOR(3 DOWNTO 0); ex:OUT STD_LOGIC_VECTOR(0 TO 6)); END bin_7segment; ARCHITECTURE behavior OF bin_7segment IS BEGIN WITH m SELECT ex<= 0000001 WHEN 0000 , 1001111 WHEN 0001 , 0010010 WHEN 0010 , 0000110 WHEN 0011 , 1001100 WHEN 0100 , 0100100 WHEN 0101 , 0100000 WHEN 0110 , 0001111 WHEN 0111 , 0000000 WHEN 1000 , 0000100 WHEN 1001 , 0000001 WHEN 1010 , 1001111 WHEN 1011 , 0010010 WHEN 1100 , 0000110 WHEN 1101 , 1001100 WHEN 1110 , 0100100 WHEN 1111 ; END behavior;
{"Image DocumentName": "Binary to 7 segment LIBRARY ieee; USE ieee.std_logic_1164.all;", "Image ImageDescription": "ENTITY bin_7segment IS. PORT(m:IN STD_LOGIC_VECTOR(3 DOWNTO 0); ex:OUT STD_LOGIC_VECTOR(0 TO 6)); END bin_7segment; ARCHITECTURE behavior OF bin_7segment IS. BEGIN. WITH m SELECT. ex<= WHEN 0000 , WHEN 0001 , WHEN 0010 , WHEN 0011 , WHEN 0100 , WHEN 0101 , WHEN 0110 , WHEN 0111 , WHEN 1000 , WHEN 1001 , WHEN 1010 , WHEN 1011 , WHEN 1100 , WHEN 1101 , WHEN 1110 , WHEN 1111 ; END behavior;", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}