From 983e56d72c3e7cd4d1d8ba4181a2950a777e470e Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Thu, 30 Mar 2017 11:23:39 +0200 Subject: [PATCH] ad9963: Remove localparams from module parameter list Declaring local parameters in the module parameter list is not valid verilog. For some reasons Vivado accepts it nevertheless so the code has worked so far. But this is not true for other tools, so move the local parameter definitions inside the module body. Signed-off-by: Lars-Peter Clausen --- library/axi_ad9963/axi_ad9963_tx_channel.v | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/library/axi_ad9963/axi_ad9963_tx_channel.v b/library/axi_ad9963/axi_ad9963_tx_channel.v index 707843659..2109b7be2 100644 --- a/library/axi_ad9963/axi_ad9963_tx_channel.v +++ b/library/axi_ad9963/axi_ad9963_tx_channel.v @@ -43,12 +43,8 @@ module axi_ad9963_tx_channel #( parameter CHANNEL_ID = 32'h0, parameter Q_OR_I_N = 0, - parameter DATAPATH_DISABLE = 0, - localparam PRBS_SEL = CHANNEL_ID, - localparam PRBS_P09 = 0, - localparam PRBS_P11 = 1, - localparam PRBS_P15 = 2, - localparam PRBS_P20 = 3) ( + parameter DATAPATH_DISABLE = 0 +) ( // dac interface @@ -80,6 +76,12 @@ module axi_ad9963_tx_channel #( output [31:0] up_rdata, output up_rack); + localparam PRBS_SEL = CHANNEL_ID; + localparam PRBS_P09 = 0; + localparam PRBS_P11 = 1; + localparam PRBS_P15 = 2; + localparam PRBS_P20 = 3; + // internal registers reg dac_valid_sel = 'd0;