diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-03-08 21:53:25 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-03-08 21:53:25 +0100 |
commit | 1e6f7c387dcaf0860988344d08cc4293b7132363 (patch) | |
tree | 6fa509cfaeba8a40491e34785bcb5983717de8f2 /basys3/basys3.srcs/ppu_consts.vhd | |
parent | b239eef1a178d88c16417ef6f05642c7ce2dada4 (diff) |
ppu dispctl WIP (shift XY output 2 scanlines and send THVBLANK)
Diffstat (limited to 'basys3/basys3.srcs/ppu_consts.vhd')
-rw-r--r-- | basys3/basys3.srcs/ppu_consts.vhd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basys3/basys3.srcs/ppu_consts.vhd b/basys3/basys3.srcs/ppu_consts.vhd index c140b98..846c7fb 100644 --- a/basys3/basys3.srcs/ppu_consts.vhd +++ b/basys3/basys3.srcs/ppu_consts.vhd @@ -34,7 +34,7 @@ package ppu_consts is constant PPU_SCREEN_WIDTH : natural := 320; -- absolute screen width (tiny pixels) constant PPU_SCREEN_HEIGHT : natural := 240; -- absolute screen height (tiny pixels) constant PPU_NATIVE_SCREEN_WIDTH : natural := 2 * PPU_SCREEN_WIDTH; -- screen width (native pixels) - constant PPU_NATIVE_SCREEN_HEIGHT : natural := 2 * PPU_SCREEN_WIDTH; -- screen height (native pixels) + constant PPU_NATIVE_SCREEN_HEIGHT : natural := 2 * PPU_SCREEN_HEIGHT; -- screen height (native pixels) constant PPU_DISPCTL_SLBUF_ADDR_WIDTH : natural := ceil_log2(2 * PPU_SCREEN_WIDTH); constant PPU_BG_CANVAS_TILES_H : natural := 40; -- tiles (horizontally) on background canvas constant PPU_BG_CANVAS_TILES_V : natural := 30; -- tiles (vertically) on background canvas @@ -58,9 +58,9 @@ package ppu_consts is constant PPU_VGA_H_BLANK : natural := PPU_VGA_H_PORCH_FRONT + PPU_VGA_H_SYNC + PPU_VGA_H_PORCH_BACK; constant PPU_VGA_H_TOTAL : natural := PPU_VGA_H_BLANK + PPU_VGA_H_ACTIVE; constant PPU_VGA_V_ACTIVE : natural := PPU_NATIVE_SCREEN_HEIGHT; - constant PPU_VGA_V_PORCH_FRONT : natural := 3; + constant PPU_VGA_V_PORCH_FRONT : natural := 4; constant PPU_VGA_V_SYNC : natural := 4; - constant PPU_VGA_V_PORCH_BACK : natural := 13; + constant PPU_VGA_V_PORCH_BACK : natural := 12; constant PPU_VGA_V_BLANK : natural := PPU_VGA_V_PORCH_FRONT + PPU_VGA_V_SYNC + PPU_VGA_V_PORCH_BACK; constant PPU_VGA_V_TOTAL : natural := PPU_VGA_V_BLANK + PPU_VGA_V_ACTIVE; constant PPU_VGA_SIGNAL_PIXEL_IDX_MAX : natural := PPU_VGA_V_TOTAL * PPU_VGA_H_TOTAL; -- horizontal and vertical pixel clock index |