diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-14 07:00:11 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-14 07:48:53 -0600 |
| commit | 8b188d47eab923fb152eae475c86b378d0d5ebee (patch) | |
| tree | e80fc954f4c31d68e10317c582846690ef46c1d2 /rtl/gfx/gfx.sv | |
| parent | 46c00a3ea411b2987f762959e4a051b80357d127 (diff) | |
rtl/gfx: implement memory interface
Diffstat (limited to 'rtl/gfx/gfx.sv')
| -rw-r--r-- | rtl/gfx/gfx.sv | 24 |
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), - .* ); |
