From 7666c9f0d285bfe14c616504239e630972cda7f6 Mon Sep 17 00:00:00 2001 From: Istvan Csomortani Date: Wed, 10 May 2017 12:52:35 +0300 Subject: [PATCH] avl_dacfifo: Add a parameter AVL_ADDRESS_WIDTH --- library/altera/avl_dacfifo/avl_dacfifo.v | 3 ++- library/altera/avl_dacfifo/avl_dacfifo_hw.tcl | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/library/altera/avl_dacfifo/avl_dacfifo.v b/library/altera/avl_dacfifo/avl_dacfifo.v index b7869d38a..b3c00be53 100644 --- a/library/altera/avl_dacfifo/avl_dacfifo.v +++ b/library/altera/avl_dacfifo/avl_dacfifo.v @@ -28,6 +28,7 @@ module avl_dacfifo #( parameter DAC_DATA_WIDTH = 64, parameter DMA_DATA_WIDTH = 64, parameter AVL_DATA_WIDTH = 512, + parameter AVL_ADDRESS_WIDTH = 25, parameter AVL_BASE_ADDRESS = 32'h00000000, parameter AVL_ADDRESS_LIMIT = 32'h1fffffff) ( @@ -57,7 +58,7 @@ module avl_dacfifo #( input avl_clk, input avl_reset, - output reg [ 24:0] avl_address, + output reg [(AVL_ADDRESS_WIDTH-1):0] avl_address, output reg [ 6:0] avl_burstcount, output reg [ 63:0] avl_byteenable, output reg avl_read, diff --git a/library/altera/avl_dacfifo/avl_dacfifo_hw.tcl b/library/altera/avl_dacfifo/avl_dacfifo_hw.tcl index 742e5abbf..653568a3c 100644 --- a/library/altera/avl_dacfifo/avl_dacfifo_hw.tcl +++ b/library/altera/avl_dacfifo/avl_dacfifo_hw.tcl @@ -17,6 +17,7 @@ ad_ip_files avl_dacfifo [list\ ad_ip_parameter DAC_DATA_WIDTH INTEGER 64 ad_ip_parameter DMA_DATA_WIDTH INTEGER 64 ad_ip_parameter AVL_DATA_WIDTH INTEGER 512 +ad_ip_parameter AVL_ADDRESS_WIDTH INTEGER 25 ad_ip_parameter AVL_BASE_ADDRESS INTEGER 0 ad_ip_parameter AVL_ADDRESS_LIMIT INTEGER 0x800000