Files
es-praktikum/Milestone2/axis_audio_bitcrusher.vhd
T
Sebastian Meyer 5f8988646e UND_Verknüpfung
2024-10-21 21:12:50 +02:00

34 lines
1.0 KiB
VHDL

library ieee;
use ieee.std_logic_1164.all
use ieee.numeric_std.all
entity axis_audio_bitcrusher is
generic
(
BIT_REDUCTION : integer := 14;
HAS_LAST : boolean := false
);
port
(
AXIS_ACLK : in std_logic;
AXIS_ARESETN : in std_logic;
-- AXI Streaming Target Port
S_AXIS_TVALID : in std_logic := '0';
S_AXIS_TDATA : in std_logic_vector(15 downto 0) := (others => '0');
S_AXIS_TLAST : in std_logic := '0';
S_AXIS_TREADY : out std_logic;
-- AXI Streaming Initiator Port
M_AXIS_TVALID : out std_logic;
M_AXIS_TDATA : out std_logic_vector(15 downto 0);
M_AXIS_TLAST : out std_logic;
M_AXIS_TREADY : in std_logic := '1'
);
end;
architecture rtl of axis_audio_bitcrusher is
reg_out <= reg_in(31 downto x) & (others => '0'); -- Setze die Bits 0 bis (x-1) auf Null
begin
end;