ad9361- alt io matching

main
Rejeesh Kutty 2015-08-27 11:55:24 -04:00
parent 026fad8853
commit 88f806f584
1 changed files with 34 additions and 7 deletions

View File

@ -34,8 +34,6 @@
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// ***************************************************************************
// ***************************************************************************
// ***************************************************************************
// ***************************************************************************
// This interface includes both the transmit and receive components -
// They both uses the same clock (sourced from the receiving side).
@ -61,6 +59,11 @@ module axi_ad9361_dev_if (
tx_data_out_p,
tx_data_out_n,
// ensm control
enable,
txnrx,
// clock (common to both receive and transmit)
rst,
@ -81,9 +84,17 @@ module axi_ad9361_dev_if (
dac_data,
dac_r1_mode,
// tdd interface
tdd_enable,
tdd_txnrx,
tdd_mode,
// delay interface
up_clk,
up_enable,
up_txnrx,
up_adc_dld,
up_adc_dwdata,
up_adc_drdata,
@ -99,8 +110,6 @@ module axi_ad9361_dev_if (
parameter DEVICE_TYPE = 0;
parameter DAC_IODELAY_ENABLE = 0;
parameter IO_DELAY_GROUP = "dev_if_delay_group";
localparam PCORE_7SERIES = 0;
localparam PCORE_VIRTEX6 = 1;
// physical interface (receive)
@ -120,6 +129,11 @@ module axi_ad9361_dev_if (
output [ 5:0] tx_data_out_p;
output [ 5:0] tx_data_out_n;
// ensm control
output enable;
output txnrx;
// clock (common to both receive and transmit)
input rst;
@ -140,15 +154,23 @@ module axi_ad9361_dev_if (
input [47:0] dac_data;
input dac_r1_mode;
// tdd interface
input tdd_enable;
input tdd_txnrx;
input tdd_mode;
// delay interface
input up_clk;
input up_enable;
input up_txnrx;
input [ 6:0] up_adc_dld;
input [34:0] up_adc_dwdata;
output [34:0] up_adc_drdata;
input [ 7:0] up_dac_dld;
input [39:0] up_dac_dwdata;
output [39:0] up_dac_drdata;
input [ 9:0] up_dac_dld;
input [49:0] up_dac_dwdata;
output [49:0] up_dac_drdata;
input delay_clk;
input delay_rst;
output delay_locked;
@ -185,6 +207,11 @@ module axi_ad9361_dev_if (
wire [ 5:0] rx_data_3_s;
wire rx_locked_s;
// tdd support-
assign enable = up_enable;
assign txnrx = up_txnrx;
// defaults
assign up_drdata = 5'd0;