diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-12-20 15:14:27 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-12-20 15:14:27 +0100 |
commit | d383e3742a4d38a3eb5899d9891cd06ba044dcac (patch) | |
tree | 7ee868b11c627039c61df9bf73351e42cf48508b /src/vga.vhd | |
parent | 0e3f4260f505314361793e71a518d1485f45f882 (diff) |
bouncing ball working without glitches + added sysreset (commented) to vga.vhd
Diffstat (limited to 'src/vga.vhd')
-rw-r--r-- | src/vga.vhd | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/vga.vhd b/src/vga.vhd index 9ba5797..fba1a29 100644 --- a/src/vga.vhd +++ b/src/vga.vhd @@ -26,9 +26,17 @@ architecture Behavioral of vga is constant front_porch_hor: natural := 16; -- horizontal front porch pulse width constant back_porch_hor: natural := 48; -- horizontal back porch pulse width begin - process (clk25) begin + -- if reset = '1' then + -- red <= x"0"; + -- green <= x"0"; + -- blue <= x"0"; + -- hsync <= '0'; + -- vsync <= '0'; + -- hcount <= (others => '0'); + -- vcount <= (others => '0'); + -- elsif rising_edge(clk25) then if rising_edge(clk25) then -- display area if (hcount >= (pulse_hor + back_porch_hor)) and |