From 64dfa0432d4b19ce146ea3ddb61a71d8111902ac Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Fri, 17 Mar 2017 12:31:44 +0100 Subject: [PATCH] axi_ad9963: Disable unused features of the register map Disable registers in the register map which are not needed for this core. This reduces the utilization of the core. Signed-off-by: Lars-Peter Clausen --- library/axi_ad9963/axi_ad9963_rx.v | 8 +++++++- library/axi_ad9963/axi_ad9963_rx_channel.v | 8 +++++++- library/axi_ad9963/axi_ad9963_tx.v | 7 ++++++- library/axi_ad9963/axi_ad9963_tx_channel.v | 7 ++++++- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/library/axi_ad9963/axi_ad9963_rx.v b/library/axi_ad9963/axi_ad9963_rx.v index 29fea5f15..27bac1229 100644 --- a/library/axi_ad9963/axi_ad9963_rx.v +++ b/library/axi_ad9963/axi_ad9963_rx.v @@ -186,7 +186,13 @@ module axi_ad9963_rx #( // common processor control - up_adc_common #(.ID (ID)) i_up_adc_common ( + up_adc_common #( + .ID (ID), + .DRP_DISABLE (1), + .USERPORTS_DISABLE (1), + .GPIO_DISABLE (1), + .START_CODE_DISABLE (1) + ) i_up_adc_common ( .mmcm_rst (), .adc_clk (adc_clk), .adc_rst (adc_rst), diff --git a/library/axi_ad9963/axi_ad9963_rx_channel.v b/library/axi_ad9963/axi_ad9963_rx_channel.v index 9c26e04fe..39e08bdbf 100644 --- a/library/axi_ad9963/axi_ad9963_rx_channel.v +++ b/library/axi_ad9963/axi_ad9963_rx_channel.v @@ -161,7 +161,13 @@ module axi_ad9963_rx_channel #( end endgenerate - up_adc_channel #(.CHANNEL_ID (CHANNEL_ID)) i_up_adc_channel ( + up_adc_channel #( + .CHANNEL_ID (CHANNEL_ID), + .DATAFORMAT_DISABLE (DATAPATH_DISABLE), + .DCFILTER_DISABLE (DATAPATH_DISABLE), + .IQCORRECTION_DISABLE (DATAPATH_DISABLE), + .USERPORTS_DISABLE (1) + ) i_up_adc_channel ( .adc_clk (adc_clk), .adc_rst (adc_rst), .adc_enable (adc_enable), diff --git a/library/axi_ad9963/axi_ad9963_tx.v b/library/axi_ad9963/axi_ad9963_tx.v index f8ab3eb25..ee5dc4507 100644 --- a/library/axi_ad9963/axi_ad9963_tx.v +++ b/library/axi_ad9963/axi_ad9963_tx.v @@ -208,7 +208,12 @@ module axi_ad9963_tx #( // dac common processor interface - up_dac_common #(.ID (ID)) i_up_dac_common ( + up_dac_common #( + .ID (ID), + .DRP_DISABLE (1), + .USERPORTS_DISABLE (1), + .GPIO_DISABLE(1) + ) i_up_dac_common ( .mmcm_rst (), .dac_clk (dac_clk), .dac_rst (dac_rst), diff --git a/library/axi_ad9963/axi_ad9963_tx_channel.v b/library/axi_ad9963/axi_ad9963_tx_channel.v index 2109b7be2..493dd1e2e 100644 --- a/library/axi_ad9963/axi_ad9963_tx_channel.v +++ b/library/axi_ad9963/axi_ad9963_tx_channel.v @@ -370,7 +370,12 @@ module axi_ad9963_tx_channel #( // single channel processor - up_dac_channel #(.CHANNEL_ID(CHANNEL_ID)) i_up_dac_channel ( + up_dac_channel #( + .CHANNEL_ID(CHANNEL_ID), + .DDS_DISABLE(DATAPATH_DISABLE), + .IQCORRECTION_DISABLE(DATAPATH_DISABLE), + .USERPORTS_DISABLE(1) + ) i_up_dac_channel ( .dac_clk (dac_clk), .dac_rst (dac_rst), .dac_dds_scale_1 (dac_dds_scale_1_s),