summaryrefslogtreecommitdiff
path: root/rtl/gfx/gfx.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-11-14 07:00:11 -0600
committerAlejandro Soto <alejandro@34project.org>2023-11-14 07:48:53 -0600
commit8b188d47eab923fb152eae475c86b378d0d5ebee (patch)
treee80fc954f4c31d68e10317c582846690ef46c1d2 /rtl/gfx/gfx.sv
parent46c00a3ea411b2987f762959e4a051b80357d127 (diff)
rtl/gfx: implement memory interface
Diffstat (limited to '')
-rw-r--r--rtl/gfx/gfx.sv24
1 files changed, 11 insertions, 13 deletions
diff --git a/rtl/gfx/gfx.sv b/rtl/gfx/gfx.sv
index e708e8d..fef08a7 100644
--- a/rtl/gfx/gfx.sv
+++ b/rtl/gfx/gfx.sv
@@ -100,7 +100,9 @@ module gfx
.*
);
- logic rop_mask_assert, rop_ready;
+ logic rop_mask_assert, rop_ready, rop_write;
+ mem_word rop_writedata;
+ half_coord rop_address;
linear_coord rop_mask_addr;
gfx_rop rop
@@ -110,29 +112,25 @@ module gfx
.in_valid(frag_valid),
.mask_addr(rop_mask_addr),
.mask_assert(rop_mask_assert),
+ .*
+ );
- .rop_write(),
- .rop_address(),
- .rop_writedata(),
- .rop_waitrequest(0),
+ logic fb_readdatavalid, fb_waitrequest, rop_waitrequest;
+ mem_word fb_readdata;
+ gfx_mem mem
+ (
.*
);
- logic scanout_read_tmp, vsync;
+ logic fb_read, vsync;
+ half_coord fb_address;
linear_coord scan_mask_addr;
gfx_scanout scanout
(
.mask(scan_mask),
.mask_addr(scan_mask_addr),
-
- .fb_read(scanout_read_tmp),
- .fb_address(),
- .fb_readdata(),
- .fb_waitrequest(0),
- .fb_readdatavalid(scanout_read_tmp),
-
.*
);