axi_ad7616: Add M_AXIS_READY_ENABLE parameter

m_axis_ready can be driven by the DMA or can have a constant active state. By default is always one.
main
Istvan Csomortani 2016-03-15 18:38:55 +02:00
parent 573146aa96
commit 665bfbc991
1 changed files with 7 additions and 2 deletions

View File

@ -96,6 +96,7 @@ module axi_ad7616 (
parameter ID = 0;
parameter IF_TYPE = 1;
parameter M_AXIS_READY_ENABLE = 0;
// local parameters
@ -179,6 +180,8 @@ module axi_ad7616 (
wire rd_dvalid_s;
wire [ 4:0] burst_length_s;
wire m_axis_ready_s;
// internal registers
reg up_wack = 1'b0;
@ -205,6 +208,8 @@ module axi_ad7616 (
end
end
assign m_axis_ready_s = (M_AXIS_READY_ENABLE) ? m_axis_tready : 1'b1;
generate if (IF_TYPE == SERIAL) begin
// ground all parallel interface signals
@ -328,7 +333,7 @@ module axi_ad7616 (
.sync_ready (s1_sync_ready_s),
.sync_data (s1_sync_s),
.offload_sdi_valid (m_axis_tvalid),
.offload_sdi_ready (m_axis_tready),
.offload_sdi_ready (m_axis_ready_s),
.offload_sdi_data (m_axis_tdata));
spi_engine_interconnect #(
@ -426,7 +431,7 @@ module axi_ad7616 (
.wr_n(wr_n),
.m_axis_tdata(m_axis_tdata),
.m_axis_tvalid(m_axis_tvalid),
.m_axis_tready(m_axis_tready),
.m_axis_tready(m_axis_ready_s),
.m_axis_xfer_req(m_axis_xfer_req),
.end_of_conv(trigger_s),
.burst_length(burst_length_s),