Nyak - VGA - CPLD
Pal Lukacs
ekegep at yahoo.com
Tue Dec 4 18:10:26 CET 2007
Jo estet !
Probalom a vga_controller_640_60 VHDL forrast kiegesziteni hogy fessen nekem szines savokat a kepernyore.
-Letrehoztam egy processzt az 50MHz clk leosztasara.
-entitast kiegeszitettem, modositottam.
-Letrehoztam egy process-t amelyben 8 db 80 keppontos savra bontom a kepernyot a "video ido" alatt es az RGB 8 szinevel festenem be.
rgb_proc: process(pixel_clk)
begin
if(rising_edge(pixel_clk)) then
if (video_enable = '1') then
if (hcounter >= "0000000000")
and (hcounter < "0001010000")
then
RED_OUT <= '1';
GREEN_OUT <= '1';
BLUE_OUT <= '1';
elsif (hcounter >= "0001010000")
and (hcounter < "0010100000")
then
RED_OUT <= '1';
GREEN_OUT <= '1';
BLUE_OUT <= '0';
................
end if; --hcounter
else --video enable
RED_OUT <= '0';
GREEN_OUT <= '0';
BLUE_OUT <= '0';
end if;
end if; --clk'ev
end process rgb_proc;
Megneztem az RTL schematic-ot , szepen latszik ahogy a muxokat letrehozta a fenti kodra es van 3 inverter amelyeknek kimenete nincs bekotve.Log a levegoben.
Ha kiszedem az else --video enable reszt akkor minden be van huzalozva az RTL ben is .
video_enable else ag helyett probaltam : if video_enable='0' agat hasznalni, ugyanaz.
Mi lehet a megoldas?
(erdekes modom a nem tul esztetikus kodomnal nincs ilyen hiba, ugyanezzel a megoldassal..)
Udv. Szabi.
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
More information about the Elektro
mailing list