-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathColorDK.txt
24 lines (24 loc) · 1.09 KB
/
ColorDK.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
color: process (reset, hSyncCounter,vSyncCounter) -- draws italian flag color scheme
begin
if ((hSyncCounter > hBackPorch) and (hSyncCounter <= hBackPorch+213) and (vSyncCounter <= vFrontPorch + 200)) then
red <= (others => '1'); -- Top left
green <= (others => '0');
blue <= (others => '0');
elsif((hSyncCounter > hBackPorch) and (hSyncCounter >= hBackPorch+293) and (vSyncCounter <= vFrontPorch + 200)) then
red <= (others => '1'); -- Top right
green <= (others => '0');
blue <= (others => '0');
elsif((hSyncCounter > hBackPorch) and (hSyncCounter <= hBackPorch+213) and (vSyncCounter >= vFrontPorch + 300)) then
red <= (others => '1'); -- Bottom left
green <= (others => '0');
blue <= (others => '0');
elsif((hSyncCounter > hBackPorch) and (hSyncCounter >= hBackPorch+293) and (vSyncCounter >= vFrontPorch + 300)) then
red <= (others => '1'); -- Bottom right
green <= (others => '0');
blue <= (others => '0');
else
red <= (others => '1'); -- White
green <= (others => '1');
blue <= (others => '1');
end if;
end process;