Skip to content

Commit

Permalink
axi_ad9963:: Update for CORDIC algorithm
Browse files Browse the repository at this point in the history
Add the new files to the IP list
Propagate DDS parameters to top file
  • Loading branch information
AndreiGrozav committed Jul 18, 2018
1 parent 6f2d186 commit 3b319fa
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
4 changes: 4 additions & 0 deletions library/axi_ad9963/axi_ad9963.v
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ module axi_ad9963 #(
parameter ADC_IODELAY_ENABLE = 0,
parameter IO_DELAY_GROUP = "dev_if_delay_group",
parameter IODELAY_ENABLE = 0,
parameter DAC_DDS_TYPE = 1,
parameter DAC_DDS_CORDIC_DW = 16,
parameter DAC_DATAPATH_DISABLE = 0,
parameter ADC_USERPORTS_DISABLE = 0,
parameter ADC_DATAFORMAT_DISABLE = 0,
Expand Down Expand Up @@ -248,6 +250,8 @@ module axi_ad9963 #(

axi_ad9963_tx #(
.ID (ID),
.DDS_TYPE (DAC_DDS_TYPE),
.DDS_CORDIC_DW (DAC_DDS_CORDIC_DW),
.DATAPATH_DISABLE (DAC_DATAPATH_DISABLE))
i_tx (
.dac_clk (dac_clk),
Expand Down
2 changes: 2 additions & 0 deletions library/axi_ad9963/axi_ad9963_ip.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ adi_ip_files axi_ad9963 [list \
"$ad_hdl_dir/library/xilinx/common/ad_dcfilter.v" \
"$ad_hdl_dir/library/xilinx/common/ad_mul.v" \
"$ad_hdl_dir/library/common/ad_pnmon.v" \
"$ad_hdl_dir/library/common/ad_dds_cordic_pipe.v" \
"$ad_hdl_dir/library/common/ad_dds_sine_cordic.v" \
"$ad_hdl_dir/library/common/ad_dds_sine.v" \
"$ad_hdl_dir/library/common/ad_dds_1.v" \
"$ad_hdl_dir/library/common/ad_dds.v" \
Expand Down
10 changes: 8 additions & 2 deletions library/axi_ad9963/axi_ad9963_tx.v
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ module axi_ad9963_tx #(

// parameters

parameter DATAPATH_DISABLE = 0,
parameter ID = 0) (
parameter ID = 0,
parameter DDS_TYPE = 1,
parameter DDS_CORDIC_DW = 16,
parameter DATAPATH_DISABLE = 0) (

// dac interface

Expand Down Expand Up @@ -120,6 +122,8 @@ module axi_ad9963_tx #(
axi_ad9963_tx_channel #(
.CHANNEL_ID (0),
.Q_OR_I_N (0),
.DDS_TYPE (DDS_TYPE),
.DDS_CORDIC_DW (DDS_CORDIC_DW),
.DATAPATH_DISABLE (DATAPATH_DISABLE))
i_tx_channel_0 (
.dac_clk (dac_clk),
Expand Down Expand Up @@ -149,6 +153,8 @@ module axi_ad9963_tx #(
axi_ad9963_tx_channel #(
.CHANNEL_ID (1),
.Q_OR_I_N (1),
.DDS_TYPE (DDS_TYPE),
.DDS_CORDIC_DW (DDS_CORDIC_DW),
.DATAPATH_DISABLE (DATAPATH_DISABLE))
i_tx_channel_1 (
.dac_clk (dac_clk),
Expand Down
11 changes: 8 additions & 3 deletions library/axi_ad9963/axi_ad9963_tx_channel.v
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ module axi_ad9963_tx_channel #(

parameter CHANNEL_ID = 32'h0,
parameter Q_OR_I_N = 0,
parameter DATAPATH_DISABLE = 0
) (
parameter DDS_TYPE = 1,
parameter DDS_CORDIC_DW = 16,
parameter DATAPATH_DISABLE = 0) (

// dac interface

Expand Down Expand Up @@ -214,7 +215,11 @@ module axi_ad9963_tx_channel #(
end
end

ad_dds i_dds (
ad_dds #(
.DISABLE (0),
.DDS_TYPE (DDS_TYPE),
.CORDIC_DW (DDS_CORDIC_DW))
i_dds (
.clk (dac_clk),
.dds_format (dac_dds_format),
.dds_phase_0 (dac_dds_phase_0),
Expand Down

0 comments on commit 3b319fa

Please sign in to comment.