From b2190241fccdfbf28d6068c9f0d2179aec285528 Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Thu, 23 Feb 2023 16:11:29 +0100 Subject: aanpassingen was counter naar 0 vergeten --- basys3/basys3.srcs/ppu_vga_tiny.vhd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basys3/basys3.srcs/ppu_vga_tiny.vhd b/basys3/basys3.srcs/ppu_vga_tiny.vhd index 7b1703e..f47df48 100644 --- a/basys3/basys3.srcs/ppu_vga_tiny.vhd +++ b/basys3/basys3.srcs/ppu_vga_tiny.vhd @@ -54,6 +54,7 @@ begin if rising_edge(CLK) then CLKcounter <= CLKcounter + 1; if(CLKcounter > 15) then + clkCounter <= (others => '0'); -- x,y data uit X <= hcount; Y <= vcount; @@ -91,7 +92,7 @@ begin vcount <= vcount + 1; hcount <= (others => '0'); end if; - + if vcount = 255 then vcount <= (others => '0'); end if; -- cgit v1.2.3