1 ------------------------------------------------------------------------------- 2 -- File : SsiDbgTap.vhd 3 -- Company : SLAC National Accelerator Laboratory 4 -- Created : 2017-06-18 5 -- Last update: 2017-06-18 6 ------------------------------------------------------------------------------- 7 -- Description: SSI debug tap, intended to be connect to chipscope for debugging 8 ------------------------------------------------------------------------------- 9 -- This file is part of 'SLAC Firmware Standard Library'. 10 -- It is subject to the license terms in the LICENSE.txt file found in the 11 -- top-level directory of this distribution and at: 12 -- https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. 13 -- No part of 'SLAC Firmware Standard Library', including this file, 14 -- may be copied, modified, propagated, or distributed except according to 15 -- the terms contained in the LICENSE.txt file. 16 ------------------------------------------------------------------------------- 19 use ieee.std_logic_1164.
all;
20 use ieee.std_logic_unsigned.
all;
21 use ieee.std_logic_arith.
all;
28 --! @ingroup protocols_ssi 48 type RegType is record 53 constant REG_INIT_C : RegType := ( 54 cnt => (others => '0'), 58 signal r : RegType := REG_INIT_C;
61 attribute dont_touch : ;
62 attribute dont_touch of r : signal is "TRUE";
70 -- Latch the current value 73 -- Check if ready to move data 77 ---------------------------------------------------------------------- 84 v.cnt := (others => '0');
91 ---------------------------------------------------------------------- 95 -- Increment the counter 101 ---------------------------------------------------------------------- 110 -- Register the variable for next clock cycle 118 r <= rin after TPD_G;
in axisMasterAxiStreamMasterType
in axisSlaveAxiStreamSlaveType
CNT_WIDTH_Gpositive := 16
AxiStreamMasterType :=(tValid => '0',tData =>( others => '0'),tStrb =>( others => '1'),tKeep =>( others => '1'),tLast => '0',tDest =>( others => '0'),tId =>( others => '0'),tUser =>( others => '0')) AXI_STREAM_MASTER_INIT_C
AXI_CONFIG_GAxiStreamConfigType := AXI_STREAM_CONFIG_INIT_C
AxiStreamConfigType :=(TSTRB_EN_C => false,TDATA_BYTES_C => 16,TDEST_BITS_C => 4,TID_BITS_C => 0,TKEEP_MODE_C => TKEEP_NORMAL_C,TUSER_BITS_C => 4,TUSER_MODE_C => TUSER_NORMAL_C) AXI_STREAM_CONFIG_INIT_C