summaryrefslogtreecommitdiff
path: root/rtl/gfx/gfx_defs.sv
diff options
context:
space:
mode:
Diffstat (limited to 'rtl/gfx/gfx_defs.sv')
-rw-r--r--rtl/gfx/gfx_defs.sv23
1 files changed, 23 insertions, 0 deletions
diff --git a/rtl/gfx/gfx_defs.sv b/rtl/gfx/gfx_defs.sv
index b1f8bb8..01b7116 100644
--- a/rtl/gfx/gfx_defs.sv
+++ b/rtl/gfx/gfx_defs.sv
@@ -20,4 +20,27 @@ typedef logic[1:0] index4;
`define INDEX4_MIN 2'b00
`define INDEX4_MAX 2'b11
+typedef logic[9:0] y_coord;
+typedef logic[8:0] x_coord;
+typedef logic[18:0] linear_coord;
+typedef logic[19:0] half_coord;
+
+`define GFX_X_RES 640
+`define GFX_Y_RES 480
+`define GFX_LINEAR_RES (`GFX_X_RES * `GFX_Y_RES)
+
+typedef struct packed
+{
+ logic[7:0] r, g, b;
+} rgb24;
+
+typedef struct packed
+{
+ logic[9:0] r, g, b;
+} rgb30;
+
+`define GFX_MASK_SRAM_STAGES 3
+`define GFX_MASK_STAGES (1 + `GFX_MASK_SRAM_STAGES + 1)
+`define GFX_SCAN_STAGES 3 // Ajustable
+
`endif