diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-05-05 17:38:55 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-05-05 18:12:08 -0600 |
| commit | ca02833f22b08ceeeff501107371aa6667426115 (patch) | |
| tree | f864c5fc238a292082d2096ce546270badce9f1d /platform/wavelet3d/gfx_sim_debug.sv | |
| parent | 081a8a3ba8bfe036f31da53f9c041a2caa30fce2 (diff) | |
rtl/gfx: rename platform/wavelet3d -> rtl/gfx
Diffstat (limited to 'platform/wavelet3d/gfx_sim_debug.sv')
| -rw-r--r-- | platform/wavelet3d/gfx_sim_debug.sv | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/platform/wavelet3d/gfx_sim_debug.sv b/platform/wavelet3d/gfx_sim_debug.sv deleted file mode 100644 index 4b4622a..0000000 --- a/platform/wavelet3d/gfx_sim_debug.sv +++ /dev/null @@ -1,50 +0,0 @@ -module gfx_sim_debug -import gfx::*; -( - input logic clk, - rst_n, - - gfx_axil.s axis -); - - enum int unsigned - { - INPUT, - STALL - } state; - - assign axis.rvalid = 0; - assign axis.arready = 0; - assign axis.awready = 1; - - always_comb - unique case (state) - INPUT: begin - axis.wready = 1; - axis.bvalid = axis.wvalid; - end - - STALL: begin - axis.wready = 0; - axis.bvalid = 1; - end - endcase - - always_ff @(posedge clk or negedge rst_n) - if (~rst_n) - state <= INPUT; - else - unique case (state) - INPUT: - if (axis.wvalid) begin - $display("%c", axis.wdata[7:0]); - if (~axis.bready) - state <= STALL; - end - - STALL: - if (axis.bready) - state <= INPUT; - endcase - -endmodule |
