From 08d2e52cd0120e5a04656cd7c180fc3f1c1f3117 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 22 Nov 2023 08:25:44 -0600 Subject: rtl/gfx: add command registers for dual fb addresses --- rtl/gfx/gfx_scanout.sv | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rtl/gfx/gfx_scanout.sv') diff --git a/rtl/gfx/gfx_scanout.sv b/rtl/gfx/gfx_scanout.sv index 1d738c4..a43d14c 100644 --- a/rtl/gfx/gfx_scanout.sv +++ b/rtl/gfx/gfx_scanout.sv @@ -7,6 +7,7 @@ module gfx_scanout input logic enable_clear, input rgb24 clear_color, + input vram_addr scan_base, input logic mask, output linear_coord mask_addr, @@ -15,7 +16,7 @@ module gfx_scanout fb_readdatavalid, input vram_word fb_readdata, output logic fb_read, - output half_coord fb_address, + output vram_addr fb_address, input logic scan_ready, output logic scan_valid, @@ -128,7 +129,7 @@ module gfx_scanout mask_hold_addr <= mask_out_addr; if (fb_ready) - fb_address <= mask_out_addr; + fb_address <= scan_base + {5'd0, mask_out_addr}; if (mask_fifo_ready) put_mask <= effective_mask; -- cgit v1.2.3