From 8a994db28ba58e35ace46c909de9bb0593272de2 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Tue, 30 Sep 2014 11:23:20 +0200 Subject: [PATCH] axi_spdif: Set unused signals to 0 Fixes warnings about undriven signals from the tools. Signed-off-by: Lars-Peter Clausen --- library/axi_spdif_tx/axi_spdif_tx.vhd | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/library/axi_spdif_tx/axi_spdif_tx.vhd b/library/axi_spdif_tx/axi_spdif_tx.vhd index 8c2256595..89f71230c 100644 --- a/library/axi_spdif_tx/axi_spdif_tx.vhd +++ b/library/axi_spdif_tx/axi_spdif_tx.vhd @@ -158,6 +158,10 @@ begin ); end generate; + no_streaming_dma_gen: if C_DMA_TYPE /= 0 generate + S_AXIS_TREADY <= '0'; + end generate; + pl330_dma_gen: if C_DMA_TYPE = 1 generate tx_fifo_stb <= '1' when wr_addr = 3 and wr_stb = '1' else '0'; @@ -191,6 +195,13 @@ begin ); end generate; + no_pl330_dma_gen: if C_DMA_TYPE /= 1 generate + DMA_REQ_DAREADY <= '0'; + DMA_REQ_DRVALID <= '0'; + DMA_REQ_DRTYPE <= (others => '0'); + DMA_REQ_DRLAST <= '0'; + end generate; + sample_data_mux: process (fifo_data_out, channel) is begin if channel = '0' then