1 -------------------------------------------------------------------------------     2 -- File       : SspDecoder8b10b.vhd     3 -- Company    : SLAC National Accelerator Laboratory     4 -- Created    : 2014-07-14     5 -- Last update: 2017-05-01     6 -------------------------------------------------------------------------------     7 -- Description: SimpleStreamingProtocol - A simple protocol layer for inserting     8 -- idle and framing control characters into a raw data stream. This module     9 -- ties the framing core to an RTL 8b10b encoder.    10 -------------------------------------------------------------------------------    11 -- This file is part of 'SLAC Firmware Standard Library'.    12 -- It is subject to the license terms in the LICENSE.txt file found in the     13 -- top-level directory of this distribution and at:     14 --    https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html.     15 -- No part of 'SLAC Firmware Standard Library', including this file,     16 -- may be copied, modified, propagated, or distributed except according to     17 -- the terms contained in the LICENSE.txt file.    18 -------------------------------------------------------------------------------    21 use ieee.std_logic_1164.
all;
    22 use IEEE.STD_LOGIC_UNSIGNED.
all;
    23 use IEEE.STD_LOGIC_ARITH.
all;
    29  --! @ingroup protocols_ssp    48 end entity SspDecoder8b10b;
    53    signal codeErr     : slv(1 downto 0);
    55    signal framedData  : slv(15 downto 0);
    56    signal framedDataK : slv(1 downto 0);
    77    decErr <= uor(codeErr);
   107 end architecture rtl;
 
out dataOutslv(   WORD_SIZE_G- 1 downto  0)  
 
out dataOutslv(   NUM_BYTES_G* 8- 1 downto  0)  
 
RST_ASYNC_Gboolean  :=   true
 
out codeErrslv(   NUM_BYTES_G- 1 downto  0)  
 
out dispErrslv(   NUM_BYTES_G- 1 downto  0)  
 
in rstsl  :=   RST_POLARITY_G
 
in rstsl  :=   RST_POLARITY_G
 
out dataOutslv( 15 downto  0)  
 
in dataKInslv(   K_SIZE_G- 1 downto  0)  
 
RST_ASYNC_Gboolean  :=   true
 
in dataInslv(   NUM_BYTES_G* 10- 1 downto  0)  
 
out dataKOutslv(   NUM_BYTES_G- 1 downto  0)  
 
in rstsl  :=not    RST_POLARITY_G
 
RST_ASYNC_Gboolean  :=   false
 
in dataInslv( 19 downto  0)  
 
in dataInslv(   WORD_SIZE_G- 1 downto  0)