zynq-sandbox

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 4d881b967400969a06531d2c372f1bd1f9b9dc81
parent 25aa415874e0ab76776b6da4edb0dd8c1a6b8f22
Author: Brian Swetland <swetland@frotz.net>
Date:   Sun, 27 Jul 2014 20:38:47 -0700

axi-sram: handle axi3 lengths (4 vs 8bit) and single-count bursts

Diffstat:
Mhdl/axi_sram.sv | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/hdl/axi_sram.sv b/hdl/axi_sram.sv @@ -24,6 +24,7 @@ module axi_sram( `define IWIDTH $bits(s.awid) `define AWIDTH $bits(s.awaddr) `define DWIDTH $bits(s.wdata) +`define LWIDTH $bits(s.awlen) // LIMITATIONS / TODO // - only supports INCR bursts (and treats all bursts as INCR type) @@ -101,8 +102,8 @@ reg next_arready; reg next_rvalid; reg next_rlast; -reg [7:0]rcount = 0; -reg [7:0]next_rcount; +reg [`LWIDTH-1:0]rcount = 0; +reg [`LWIDTH-1:0]next_rcount; reg [`AWIDTH-1:0]raddr = 0; reg [`AWIDTH-1:0]next_raddr;