2014-03-12 00:01:55 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
// Copyright 2011(c) Analog Devices, Inc.
|
|
|
|
//
|
|
|
|
// All rights reserved.
|
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without modification,
|
|
|
|
// are permitted provided that the following conditions are met:
|
|
|
|
// - Redistributions of source code must retain the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer.
|
|
|
|
// - Redistributions in binary form must reproduce the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer in
|
|
|
|
// the documentation and/or other materials provided with the
|
|
|
|
// distribution.
|
|
|
|
// - Neither the name of Analog Devices, Inc. nor the names of its
|
|
|
|
// contributors may be used to endorse or promote products derived
|
|
|
|
// from this software without specific prior written permission.
|
|
|
|
// - The use of this software may or may not infringe the patent rights
|
|
|
|
// of one or more patent holders. This license does not release you
|
|
|
|
// from the requirement that you obtain separate licenses from these
|
|
|
|
// patent holders to use this software.
|
|
|
|
// - Use of the software either in source or binary form, must be run
|
|
|
|
// on or directly connected to an Analog Devices Inc. component.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
|
|
// INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A
|
|
|
|
// PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
//
|
|
|
|
// IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
|
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY
|
|
|
|
// RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
|
|
// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
|
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
|
|
|
|
`timescale 1ns/100ps
|
|
|
|
|
|
|
|
module axi_ad9361_tx (
|
|
|
|
|
|
|
|
// dac interface
|
|
|
|
|
|
|
|
dac_clk,
|
|
|
|
dac_valid,
|
2014-06-24 18:22:05 +00:00
|
|
|
dac_data,
|
2014-03-12 00:01:55 +00:00
|
|
|
dac_r1_mode,
|
2014-06-24 18:22:05 +00:00
|
|
|
adc_data,
|
2014-04-10 07:46:42 +00:00
|
|
|
|
2015-05-18 18:24:43 +00:00
|
|
|
// delay interface
|
|
|
|
|
|
|
|
up_dld,
|
|
|
|
up_dwdata,
|
|
|
|
up_drdata,
|
|
|
|
delay_clk,
|
|
|
|
delay_rst,
|
|
|
|
delay_locked,
|
|
|
|
|
2014-05-19 16:41:12 +00:00
|
|
|
// master/slave
|
|
|
|
|
2014-06-24 18:22:05 +00:00
|
|
|
dac_sync_in,
|
|
|
|
dac_sync_out,
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
// dma interface
|
|
|
|
|
2014-06-24 18:22:05 +00:00
|
|
|
dac_enable_i0,
|
|
|
|
dac_valid_i0,
|
|
|
|
dac_data_i0,
|
|
|
|
dac_enable_q0,
|
|
|
|
dac_valid_q0,
|
|
|
|
dac_data_q0,
|
|
|
|
dac_enable_i1,
|
|
|
|
dac_valid_i1,
|
|
|
|
dac_data_i1,
|
|
|
|
dac_enable_q1,
|
|
|
|
dac_valid_q1,
|
|
|
|
dac_data_q1,
|
2014-03-12 00:01:55 +00:00
|
|
|
dac_dovf,
|
|
|
|
dac_dunf,
|
|
|
|
|
2014-06-27 18:45:58 +00:00
|
|
|
// gpio
|
|
|
|
|
|
|
|
up_dac_gpio_in,
|
|
|
|
up_dac_gpio_out,
|
|
|
|
|
2014-03-12 00:01:55 +00:00
|
|
|
// processor interface
|
|
|
|
|
|
|
|
up_rstn,
|
|
|
|
up_clk,
|
2014-10-02 18:35:06 +00:00
|
|
|
up_wreq,
|
|
|
|
up_waddr,
|
2014-03-12 00:01:55 +00:00
|
|
|
up_wdata,
|
2014-10-02 18:35:06 +00:00
|
|
|
up_wack,
|
|
|
|
up_rreq,
|
|
|
|
up_raddr,
|
2014-03-12 00:01:55 +00:00
|
|
|
up_rdata,
|
2014-10-02 18:35:06 +00:00
|
|
|
up_rack);
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
// parameters
|
|
|
|
|
|
|
|
parameter DP_DISABLE = 0;
|
|
|
|
parameter PCORE_ID = 0;
|
|
|
|
|
|
|
|
// dac interface
|
|
|
|
|
|
|
|
input dac_clk;
|
|
|
|
output dac_valid;
|
2014-06-24 18:22:05 +00:00
|
|
|
output [47:0] dac_data;
|
2014-03-12 00:01:55 +00:00
|
|
|
output dac_r1_mode;
|
2014-06-24 18:22:05 +00:00
|
|
|
input [47:0] adc_data;
|
2014-04-10 07:46:42 +00:00
|
|
|
|
2015-05-18 18:24:43 +00:00
|
|
|
// delay interface
|
|
|
|
|
|
|
|
output [ 7:0] up_dld;
|
|
|
|
output [39:0] up_dwdata;
|
|
|
|
input [39:0] up_drdata;
|
|
|
|
input delay_clk;
|
|
|
|
output delay_rst;
|
|
|
|
input delay_locked;
|
|
|
|
|
2014-05-19 16:41:12 +00:00
|
|
|
// master/slave
|
|
|
|
|
2014-06-24 18:22:05 +00:00
|
|
|
input dac_sync_in;
|
|
|
|
output dac_sync_out;
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
// dma interface
|
|
|
|
|
2014-06-24 18:22:05 +00:00
|
|
|
output dac_enable_i0;
|
|
|
|
output dac_valid_i0;
|
|
|
|
input [15:0] dac_data_i0;
|
|
|
|
output dac_enable_q0;
|
|
|
|
output dac_valid_q0;
|
|
|
|
input [15:0] dac_data_q0;
|
|
|
|
output dac_enable_i1;
|
|
|
|
output dac_valid_i1;
|
|
|
|
input [15:0] dac_data_i1;
|
|
|
|
output dac_enable_q1;
|
|
|
|
output dac_valid_q1;
|
|
|
|
input [15:0] dac_data_q1;
|
2014-03-12 00:01:55 +00:00
|
|
|
input dac_dovf;
|
|
|
|
input dac_dunf;
|
|
|
|
|
2014-06-27 18:45:58 +00:00
|
|
|
// gpio
|
|
|
|
|
|
|
|
input [31:0] up_dac_gpio_in;
|
|
|
|
output [31:0] up_dac_gpio_out;
|
|
|
|
|
2014-03-12 00:01:55 +00:00
|
|
|
// processor interface
|
|
|
|
|
|
|
|
input up_rstn;
|
|
|
|
input up_clk;
|
2014-10-02 18:35:06 +00:00
|
|
|
input up_wreq;
|
|
|
|
input [13:0] up_waddr;
|
2014-03-12 00:01:55 +00:00
|
|
|
input [31:0] up_wdata;
|
2014-10-02 18:35:06 +00:00
|
|
|
output up_wack;
|
|
|
|
input up_rreq;
|
|
|
|
input [13:0] up_raddr;
|
2014-03-12 00:01:55 +00:00
|
|
|
output [31:0] up_rdata;
|
2014-10-02 18:35:06 +00:00
|
|
|
output up_rack;
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
// internal registers
|
|
|
|
|
2014-06-24 18:22:05 +00:00
|
|
|
reg dac_data_sync = 'd0;
|
2014-03-12 00:01:55 +00:00
|
|
|
reg [ 7:0] dac_rate_cnt = 'd0;
|
|
|
|
reg dac_valid = 'd0;
|
2014-06-24 18:22:05 +00:00
|
|
|
reg dac_valid_i0 = 'd0;
|
|
|
|
reg dac_valid_q0 = 'd0;
|
|
|
|
reg dac_valid_i1 = 'd0;
|
|
|
|
reg dac_valid_q1 = 'd0;
|
2014-03-12 00:01:55 +00:00
|
|
|
reg [31:0] up_rdata = 'd0;
|
2014-10-02 18:35:06 +00:00
|
|
|
reg up_rack = 'd0;
|
|
|
|
reg up_wack = 'd0;
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
// internal clock and resets
|
|
|
|
|
|
|
|
wire dac_rst;
|
|
|
|
|
|
|
|
// internal signals
|
|
|
|
|
2014-06-24 18:22:05 +00:00
|
|
|
wire dac_data_sync_s;
|
|
|
|
wire dac_dds_format_s;
|
2014-03-12 00:01:55 +00:00
|
|
|
wire [ 7:0] dac_datarate_s;
|
2014-06-24 18:22:05 +00:00
|
|
|
wire [47:0] dac_data_int_s;
|
2015-05-18 18:24:43 +00:00
|
|
|
wire [31:0] up_rdata_s[0:5];
|
|
|
|
wire up_rack_s[0:5];
|
|
|
|
wire up_wack_s[0:5];
|
2014-03-12 00:01:55 +00:00
|
|
|
|
2014-04-10 07:46:42 +00:00
|
|
|
// master/slave
|
2014-05-19 16:41:12 +00:00
|
|
|
|
2014-06-24 18:22:05 +00:00
|
|
|
assign dac_data_sync_s = (PCORE_ID == 0) ? dac_sync_out : dac_sync_in;
|
2014-06-07 14:15:31 +00:00
|
|
|
|
2014-04-10 07:46:42 +00:00
|
|
|
always @(posedge dac_clk) begin
|
2014-06-24 18:22:05 +00:00
|
|
|
dac_data_sync <= dac_data_sync_s;
|
2014-04-10 07:46:42 +00:00
|
|
|
end
|
2014-06-07 14:15:31 +00:00
|
|
|
|
2014-06-24 18:22:05 +00:00
|
|
|
// rate counters and data sync signals
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
always @(posedge dac_clk) begin
|
2014-06-24 18:22:05 +00:00
|
|
|
if ((dac_data_sync == 1'b1) || (dac_rate_cnt == 8'd0)) begin
|
2014-03-12 00:01:55 +00:00
|
|
|
dac_rate_cnt <= dac_datarate_s;
|
|
|
|
end else begin
|
|
|
|
dac_rate_cnt <= dac_rate_cnt - 1'b1;
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
// dma interface
|
|
|
|
|
|
|
|
always @(posedge dac_clk) begin
|
2014-06-24 18:22:05 +00:00
|
|
|
dac_valid <= (dac_rate_cnt == 8'd0) ? 1'b1 : 1'b0;
|
|
|
|
dac_valid_i0 <= dac_valid;
|
|
|
|
dac_valid_q0 <= dac_valid;
|
|
|
|
dac_valid_i1 <= dac_valid & ~dac_r1_mode;
|
|
|
|
dac_valid_q1 <= dac_valid & ~dac_r1_mode;
|
2014-03-12 00:01:55 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
// processor read interface
|
|
|
|
|
|
|
|
always @(negedge up_rstn or posedge up_clk) begin
|
|
|
|
if (up_rstn == 0) begin
|
|
|
|
up_rdata <= 'd0;
|
2014-10-02 18:35:06 +00:00
|
|
|
up_rack <= 'd0;
|
|
|
|
up_wack <= 'd0;
|
2014-03-12 00:01:55 +00:00
|
|
|
end else begin
|
2015-05-18 18:24:43 +00:00
|
|
|
up_rdata <= up_rdata_s[0] | up_rdata_s[1] | up_rdata_s[2] |
|
|
|
|
up_rdata_s[3] | up_rdata_s[4] | up_rdata_s[5];
|
|
|
|
up_rack <= up_rack_s[0] | up_rack_s[1] | up_rack_s[2] |
|
|
|
|
up_rack_s[3] | up_rack_s[4] | up_rack_s[5];
|
|
|
|
up_wack <= up_wack_s[0] | up_wack_s[1] | up_wack_s[2] |
|
|
|
|
up_wack_s[3] | up_wack_s[4] | up_wack_s[5];
|
2014-03-12 00:01:55 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
// dac channel
|
|
|
|
|
|
|
|
axi_ad9361_tx_channel #(
|
2014-06-24 18:22:05 +00:00
|
|
|
.CHID (0),
|
|
|
|
.IQSEL (0),
|
2014-03-12 00:01:55 +00:00
|
|
|
.DP_DISABLE (DP_DISABLE))
|
|
|
|
i_tx_channel_0 (
|
|
|
|
.dac_clk (dac_clk),
|
|
|
|
.dac_rst (dac_rst),
|
2014-06-24 18:22:05 +00:00
|
|
|
.dac_valid (dac_valid),
|
|
|
|
.dma_data (dac_data_i0),
|
|
|
|
.adc_data (adc_data[11:0]),
|
|
|
|
.dac_data (dac_data[11:0]),
|
|
|
|
.dac_data_out (dac_data_int_s[11:0]),
|
|
|
|
.dac_data_in (dac_data_int_s[23:12]),
|
|
|
|
.dac_enable (dac_enable_i0),
|
|
|
|
.dac_data_sync (dac_data_sync),
|
|
|
|
.dac_dds_format (dac_dds_format_s),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_rstn (up_rstn),
|
|
|
|
.up_clk (up_clk),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wreq (up_wreq),
|
|
|
|
.up_waddr (up_waddr),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_wdata (up_wdata),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wack (up_wack_s[0]),
|
|
|
|
.up_rreq (up_rreq),
|
|
|
|
.up_raddr (up_raddr),
|
2014-06-24 18:22:05 +00:00
|
|
|
.up_rdata (up_rdata_s[0]),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_rack (up_rack_s[0]));
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
// dac channel
|
|
|
|
|
|
|
|
axi_ad9361_tx_channel #(
|
2014-06-24 18:22:05 +00:00
|
|
|
.CHID (1),
|
|
|
|
.IQSEL (1),
|
2014-03-12 00:01:55 +00:00
|
|
|
.DP_DISABLE (DP_DISABLE))
|
|
|
|
i_tx_channel_1 (
|
|
|
|
.dac_clk (dac_clk),
|
|
|
|
.dac_rst (dac_rst),
|
2014-06-24 18:22:05 +00:00
|
|
|
.dac_valid (dac_valid),
|
|
|
|
.dma_data (dac_data_q0),
|
|
|
|
.adc_data (adc_data[23:12]),
|
|
|
|
.dac_data (dac_data[23:12]),
|
|
|
|
.dac_data_out (dac_data_int_s[23:12]),
|
|
|
|
.dac_data_in (dac_data_int_s[11:0]),
|
|
|
|
.dac_enable (dac_enable_q0),
|
|
|
|
.dac_data_sync (dac_data_sync),
|
|
|
|
.dac_dds_format (dac_dds_format_s),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_rstn (up_rstn),
|
|
|
|
.up_clk (up_clk),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wreq (up_wreq),
|
|
|
|
.up_waddr (up_waddr),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_wdata (up_wdata),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wack (up_wack_s[1]),
|
|
|
|
.up_rreq (up_rreq),
|
|
|
|
.up_raddr (up_raddr),
|
2014-06-24 18:22:05 +00:00
|
|
|
.up_rdata (up_rdata_s[1]),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_rack (up_rack_s[1]));
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
// dac channel
|
|
|
|
|
|
|
|
axi_ad9361_tx_channel #(
|
2014-06-24 18:22:05 +00:00
|
|
|
.CHID (2),
|
|
|
|
.IQSEL (0),
|
2014-03-12 00:01:55 +00:00
|
|
|
.DP_DISABLE (DP_DISABLE))
|
|
|
|
i_tx_channel_2 (
|
|
|
|
.dac_clk (dac_clk),
|
|
|
|
.dac_rst (dac_rst),
|
2014-06-24 18:22:05 +00:00
|
|
|
.dac_valid (dac_valid),
|
|
|
|
.dma_data (dac_data_i1),
|
|
|
|
.adc_data (adc_data[35:24]),
|
|
|
|
.dac_data (dac_data[35:24]),
|
|
|
|
.dac_data_out (dac_data_int_s[35:24]),
|
|
|
|
.dac_data_in (dac_data_int_s[47:36]),
|
|
|
|
.dac_enable (dac_enable_i1),
|
|
|
|
.dac_data_sync (dac_data_sync),
|
|
|
|
.dac_dds_format (dac_dds_format_s),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_rstn (up_rstn),
|
|
|
|
.up_clk (up_clk),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wreq (up_wreq),
|
|
|
|
.up_waddr (up_waddr),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_wdata (up_wdata),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wack (up_wack_s[2]),
|
|
|
|
.up_rreq (up_rreq),
|
|
|
|
.up_raddr (up_raddr),
|
2014-06-24 18:22:05 +00:00
|
|
|
.up_rdata (up_rdata_s[2]),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_rack (up_rack_s[2]));
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
// dac channel
|
|
|
|
|
|
|
|
axi_ad9361_tx_channel #(
|
2014-06-24 18:22:05 +00:00
|
|
|
.CHID (3),
|
|
|
|
.IQSEL (1),
|
2014-03-12 00:01:55 +00:00
|
|
|
.DP_DISABLE (DP_DISABLE))
|
|
|
|
i_tx_channel_3 (
|
|
|
|
.dac_clk (dac_clk),
|
|
|
|
.dac_rst (dac_rst),
|
2014-06-24 18:22:05 +00:00
|
|
|
.dac_valid (dac_valid),
|
|
|
|
.dma_data (dac_data_q1),
|
|
|
|
.adc_data (adc_data[47:36]),
|
|
|
|
.dac_data (dac_data[47:36]),
|
|
|
|
.dac_data_out (dac_data_int_s[47:36]),
|
|
|
|
.dac_data_in (dac_data_int_s[35:24]),
|
|
|
|
.dac_enable (dac_enable_q1),
|
|
|
|
.dac_data_sync (dac_data_sync),
|
|
|
|
.dac_dds_format (dac_dds_format_s),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_rstn (up_rstn),
|
|
|
|
.up_clk (up_clk),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wreq (up_wreq),
|
|
|
|
.up_waddr (up_waddr),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_wdata (up_wdata),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wack (up_wack_s[3]),
|
|
|
|
.up_rreq (up_rreq),
|
|
|
|
.up_raddr (up_raddr),
|
2014-06-24 18:22:05 +00:00
|
|
|
.up_rdata (up_rdata_s[3]),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_rack (up_rack_s[3]));
|
2014-03-12 00:01:55 +00:00
|
|
|
|
|
|
|
// dac common processor interface
|
|
|
|
|
2014-03-14 16:02:16 +00:00
|
|
|
up_dac_common #(.PCORE_ID (PCORE_ID)) i_up_dac_common (
|
2014-03-12 00:01:55 +00:00
|
|
|
.mmcm_rst (),
|
|
|
|
.dac_clk (dac_clk),
|
|
|
|
.dac_rst (dac_rst),
|
2014-06-24 18:22:05 +00:00
|
|
|
.dac_sync (dac_sync_out),
|
2014-03-12 00:01:55 +00:00
|
|
|
.dac_frame (),
|
|
|
|
.dac_par_type (),
|
|
|
|
.dac_par_enb (),
|
|
|
|
.dac_r1_mode (dac_r1_mode),
|
2014-06-24 18:22:05 +00:00
|
|
|
.dac_datafmt (dac_dds_format_s),
|
2014-03-12 00:01:55 +00:00
|
|
|
.dac_datarate (dac_datarate_s),
|
|
|
|
.dac_status (1'b1),
|
|
|
|
.dac_status_ovf (dac_dovf),
|
|
|
|
.dac_status_unf (dac_dunf),
|
|
|
|
.dac_clk_ratio (32'd1),
|
2015-06-01 18:52:52 +00:00
|
|
|
.up_drp_sel (),
|
|
|
|
.up_drp_wr (),
|
|
|
|
.up_drp_addr (),
|
|
|
|
.up_drp_wdata (),
|
|
|
|
.up_drp_rdata (16'd0),
|
|
|
|
.up_drp_ready (1'd0),
|
|
|
|
.up_drp_locked (1'd1),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_usr_chanmax (),
|
|
|
|
.dac_usr_chanmax (8'd3),
|
2014-06-27 18:45:58 +00:00
|
|
|
.up_dac_gpio_in (up_dac_gpio_in),
|
|
|
|
.up_dac_gpio_out (up_dac_gpio_out),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_rstn (up_rstn),
|
|
|
|
.up_clk (up_clk),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wreq (up_wreq),
|
|
|
|
.up_waddr (up_waddr),
|
2014-03-12 00:01:55 +00:00
|
|
|
.up_wdata (up_wdata),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_wack (up_wack_s[4]),
|
|
|
|
.up_rreq (up_rreq),
|
|
|
|
.up_raddr (up_raddr),
|
2014-06-24 18:22:05 +00:00
|
|
|
.up_rdata (up_rdata_s[4]),
|
2014-10-02 18:35:06 +00:00
|
|
|
.up_rack (up_rack_s[4]));
|
2014-03-12 00:01:55 +00:00
|
|
|
|
2015-05-18 18:24:43 +00:00
|
|
|
// dac delay control
|
|
|
|
|
|
|
|
up_delay_cntrl #(.IO_WIDTH(8), .IO_BASEADDR(6'h12)) i_delay_cntrl (
|
|
|
|
.delay_clk (delay_clk),
|
|
|
|
.delay_rst (delay_rst),
|
|
|
|
.delay_locked (delay_locked),
|
|
|
|
.up_dld (up_dld),
|
|
|
|
.up_dwdata (up_dwdata),
|
|
|
|
.up_drdata (up_drdata),
|
|
|
|
.up_rstn (up_rstn),
|
|
|
|
.up_clk (up_clk),
|
|
|
|
.up_wreq (up_wreq),
|
|
|
|
.up_waddr (up_waddr),
|
|
|
|
.up_wdata (up_wdata),
|
|
|
|
.up_wack (up_wack_s[5]),
|
|
|
|
.up_rreq (up_rreq),
|
|
|
|
.up_raddr (up_raddr),
|
|
|
|
.up_rdata (up_rdata_s[5]),
|
|
|
|
.up_rack (up_rack_s[5]));
|
|
|
|
|
2014-03-12 00:01:55 +00:00
|
|
|
endmodule
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|