-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtext_setter.vhd.bak
42 lines (37 loc) · 1.24 KB
/
text_setter.vhd.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;
entity text_setter is
PORT
(
character_address : OUT STD_LOGIC_VECTOR (5 DOWNTO 0);
pixel_row, pixel_col : IN STD_LOGIC_VECTOR (9 DOWNTO 4);
clock : IN STD_LOGIC ;
rom_mux_output : OUT STD_LOGIC
);
end text_setter;
architecture behave of text_setter is
begin
process (pixel_col)
begin
if(pixel_row= "00010") then
if (pixel_col ="00010") then
character_address <= "000110"; --F
elsif (pixel_col ="00011") then
character_address <= "001100"; --L
elsif (pixel_col ="00100") then
character_address <= "000001"; --A
elsif (pixel_col ="00101") then
character_address <= "010000"; --P
elsif (pixel_col ="00111") then
character_address <= "010000"; --P
elsif (pixel_col ="01000") then
character_address <= "000001"; --Y
else
character_address <= "100000";
end if;
else
character_address <= "100000";
end if;
end process;
end architecture;