10 use IEEE.STD_LOGIC_1164.
all;
11 use ieee.numeric_std.
all;
14 use ipbus_lib.ipbus.
all;
19 generic (DISABLE : std_logic := '0');
36 din : in std_logic_vector(31 downto 0);
38 we : in std_logic := '0';
40 q : out std_logic_vector(227 downto 0)
49 component mgt_playback_ram
53 wea :
in std_logic_vector(
0 downto 0);
54 addra :
in std_logic_vector(
6 downto 0);
55 dina :
in std_logic_vector(
31 downto 0);
56 douta :
out std_logic_vector(
31 downto 0);
59 web :
in std_logic_vector(
0 downto 0);
60 addrb :
in std_logic_vector(
3 downto 0);
61 dinb :
in std_logic_vector(
255 downto 0);
62 doutb :
out std_logic_vector(
255 downto 0)
67 signal ack, ack2 ,kchar_i : std_logic;
68 signal enb : std_logic;
69 signal addr : std_logic_vector(3 downto 0);
70 signal ipbus_write : std_logic_vector(0 downto 0);
71 signal write_enable : std_logic_vector(0 downto 0);
74 signal ipb_out_int : std_logic_vector(31 downto 0);
75 signal q_int : std_logic_vector(255 downto 0);
82 if ipb_in.ipb_strobe = '1' and ipb_in.ipb_write = '1' then
83 ipbus_write(0) <= '1';
85 ipbus_write(0) <= '0';
87 ack2 <= ipb_in.ipb_strobe and (not ack2) and (not ack);
95 write_enable(0) <= we;
97 PLAYBACK_RAM : mgt_playback_ram
100 ena => ipb_in.ipb_strobe,
102 addra => ipb_in.ipb_addr
(6 downto 0),
103 dina => ipb_in.ipb_wdata,
104 douta => ipb_out_int,
107 web =>
(others => '0'
),
109 dinb =>
(others => '0'
),
113 q <= q_int(227 downto 0) when DISABLE = '0' else (others => '0');
114 ipb_out.ipb_rdata <= ipb_out_int when DISABLE = '0' else x"d15ab1ed";
control State machine of playback ram
in clk std_logic
rx clock of 40 Mhz
out en std_logic
ram enable
out addr std_logic_vector( 3 DOWNTO 0)
ram address for read side
Wrapper for the input spy/playback RAM of the MGT.
Wrapper for the input spy/playback RAM of the MGT.
in ttc_clk std_logic
ttc clock of 40 MHz
out ipb_out ipb_rbus
ipbus data out
in we std_logic := '0'
write en
in din std_logic_vector( 31 downto 0)
data in
in ipb_in ipb_wbus
ipbus data in
in clk_ipb std_logic
ipbus clock
out q std_logic_vector( 227 downto 0)
data out