From ac393290461fdafaf4ab5e753b5bc2e9c4dca8e6 Mon Sep 17 00:00:00 2001 From: Istvan Csomortani Date: Wed, 22 Jul 2015 17:59:52 +0300 Subject: [PATCH] axi_spdif_rx: Fix the pl330_dma control path - fix pl330_dma control path - delete unused control_reg bits - change the port name spdif_rx_i_osc to spdif_rx_i_dbg - version_reg is read only --- library/axi_spdif_rx/axi_spdif_rx.vhd | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/library/axi_spdif_rx/axi_spdif_rx.vhd b/library/axi_spdif_rx/axi_spdif_rx.vhd index 0149410fc..881f02470 100644 --- a/library/axi_spdif_rx/axi_spdif_rx.vhd +++ b/library/axi_spdif_rx/axi_spdif_rx.vhd @@ -62,7 +62,7 @@ entity axi_spdif_rx is --SPDIF ports rx_int_o : out std_logic; spdif_rx_i : in std_logic; - spdif_rx_i_osc : out std_logic; + spdif_rx_i_dbg : out std_logic; --AXI Lite inter face S_AXI_ACLK : in std_logic; @@ -131,7 +131,6 @@ architecture IMP of axi_spdif_rx is signal conf_rxen : std_logic; signal conf_sample : std_logic; - signal evt_en : std_logic; signal conf_chas : std_logic; signal conf_valid : std_logic; signal conf_blken : std_logic; @@ -177,7 +176,7 @@ architecture IMP of axi_spdif_rx is begin ------------------------------------------------------------------------------- - -- Version Register'w + -- Version Register ------------------------------------------------------------------------------- version_reg(31 downto 20) <= (others => '0'); version_reg(19 downto 16) <= "0001"; @@ -198,7 +197,6 @@ begin conf_blken <= control_reg(5); conf_valid <= control_reg(4); conf_chas <= control_reg(3); - evt_en <= control_reg(2); conf_sample <= control_reg(1); conf_rxen <= control_reg(0); -------------------------------------------------------------------------------- @@ -256,9 +254,9 @@ begin enable => enable, in_data => sample_din, - in_stb => tx_fifo_stb, + in_stb => sample_wr, - out_ack => '1', + out_ack => tx_fifo_stb, out_data => sampled_data, dclk => DMA_REQ_ACLK, @@ -328,7 +326,7 @@ begin cs_a_en => cs_a_en, cs_b_en => cs_b_en ); - spdif_rx_i_osc <= spdif_rx_i; + spdif_rx_i_dbg <= spdif_rx_i; -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- @@ -415,7 +413,6 @@ begin else if wr_stb = '1' then case wr_addr is - when 0 => version_reg <= wr_data; when 1 => control_reg <= wr_data; when others => null; end case;