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 <lars@metafoo.de>main
parent
e04793b6eb
commit
983e56d72c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue