From cf2bbf66b7852746d7ba3c2a999f6f458af6d3a8 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Tue, 30 Sep 2014 11:22:14 +0200 Subject: [PATCH] axi_i2s: Set unused signals to 0 Fixes warnings from the tools about undriven signals. Signed-off-by: Lars-Peter Clausen --- library/axi_i2s_adi/axi_i2s_adi.vhd | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/library/axi_i2s_adi/axi_i2s_adi.vhd b/library/axi_i2s_adi/axi_i2s_adi.vhd index 789420e5e..322aa2bd1 100644 --- a/library/axi_i2s_adi/axi_i2s_adi.vhd +++ b/library/axi_i2s_adi/axi_i2s_adi.vhd @@ -200,6 +200,10 @@ begin ); end generate; + no_streaming_dma_tx_gen: if C_DMA_TYPE /= 0 or C_HAS_TX /= 1 generate + S_AXIS_TREADY <= '0'; + end generate; + streaming_dma_rx_gen: if C_DMA_TYPE = 0 and C_HAS_RX = 1 generate rx_fifo : entity axi_streaming_dma_rx_fifo generic map( @@ -229,6 +233,15 @@ begin M_AXIS_TDATA(7 downto 0) <= (others => '0'); end generate; + no_streaming_dma_rx_gen: if C_DMA_TYPE /= 0 or C_HAS_RX /= 1 generate + M_AXIS_TDATA <= (others => '0'); + M_AXIS_TLAST <= '0'; + M_AXIS_TVALID <= '0'; + M_AXIS_TKEEP <= (others => '0'); + end generate; + + + pl330_dma_tx_gen: if C_DMA_TYPE = 1 and C_HAS_TX = 1 generate tx_fifo_stb <= '1' when wr_addr = 11 and wr_stb = '1' else '0'; @@ -263,6 +276,12 @@ begin ); end generate; + no_pl330_dma_tx_gen: if C_DMA_TYPE /= 1 or C_HAS_TX /= 1 generate + DMA_REQ_TX_DAREADY <= '0'; + DMA_REQ_TX_DRVALID <= '0'; + DMA_REQ_TX_DRTYPE <= (others => '0'); + DMA_REQ_TX_DRLAST <= '0'; + end generate; pl330_dma_rx_gen: if C_DMA_TYPE = 1 and C_HAS_RX = 1 generate rx_fifo_ack <= '1' when rd_addr = 10 and rd_ack = '1' else '0'; @@ -296,6 +315,14 @@ begin drtype => DMA_REQ_RX_DRTYPE, drlast => DMA_REQ_RX_DRLAST ); + + end generate; + + no_pl330_dma_rx_gen: if C_DMA_TYPE /= 1 or C_HAS_RX /= 1 generate + DMA_REQ_RX_DAREADY <= '0'; + DMA_REQ_RX_DRVALID <= '0'; + DMA_REQ_RX_DRTYPE <= (others => '0'); + DMA_REQ_RX_DRLAST <= '0'; end generate; ctrl : entity i2s_controller