• typa |
i f r | |
.i lb |
x(3) x(2) |
x(l) |
. ob a |
, b c d e |
f 9 |
0000 |
1111110 | |
0001 |
0110000 | |
0010 |
1101101 | |
0011 |
1111001 | |
0100 |
0110011 | |
0101 |
1011011 | |
0110 |
1011111 | |
0111 |
1110000 | |
1000 |
1111111 | |
1001 |
1111011 | |
library ieee;
use leee.std_logic_1164.all;
entity seven_seg_controler is port(
x : in std_logic_vector (3 downto 0); a, b, c, d, e, f, g : out stdjogic
end seven_seg_controłer; architecture data_ftow of seven_seg_controler is signal o: std_logic_vector (6 downto 0); begin
with x select
o <= "1111110" when "0000", "0110000" when "0001", "1101101" when "0010", "1111001" when "0011", "0110011" when "0100",
"1011011" when "0101", "1011111" when "0110", "1110000" when "0111", "1111111" when "1000", "1111011" when "1001".
I*-" when others; |
(a, b, c, d, e, f, g) <- o;
end data_flow;
Mariusz Rawski