Professional Documents
Culture Documents
Code Led 7 Đo N A Chung. stt20
Code Led 7 Đo N A Chung. stt20
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity seg7anodechung is
end seg7anodechung;
begin
"0001110"; --F
end Behavioral;
file tb:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity seg7anodechungtb is
end seg7anodechungtb;
component seg7anodechung
end component ;
begin
I => I,
SEG => SEG );
stim_proc: process
begin
I <= "0000";
I <= "0001";
I <= "0010";
I <= "0011";
I <= "0100";
I <= "0101";
I <= "0110";
I <= "0111";
I <= "1000";
I <= "1001";
I <= "1010";
I <= "1011";
I <= "1101";
I <= "1110";
I <= "1111";
wait;
end process;
end behavioral ;