1 ------------------------------------------------------------------------------- 2 -- File : Decoder8b10b.vhd 3 -- Company : SLAC National Accelerator Laboratory 4 -- Created : 2012-11-15 5 -- Last update: 2017-05-01 6 ------------------------------------------------------------------------------- 7 -- Description: 8B10B Decoder Module 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;
24 --! @ingroup base_general 34 clkEn : in sl := '1';
-- Optional Clock Enable 44 end entity Decoder8b10b;
48 type RegType is record 57 constant REG_INIT_C : RegType := ( 65 signal r : RegType := REG_INIT_C;
72 variable dispChainVar : sl;
79 dispChainVar := r.runDisp;
82 dispIn => dispChainVar, 85 dispOut => dispChainVar, 89 v.runDisp := dispChainVar;
104 seq :
process (
clk,
rst)
is 107 r <= REG_INIT_C after TPD_G;
108 elsif (rising_edge(clk)) then 109 if (clkEn = '1') then 110 r <= rin after TPD_G;
115 end architecture rtl;
out dataOutslv( NUM_BYTES_G* 8- 1 downto 0)
out codeErrslv( NUM_BYTES_G- 1 downto 0)
out dispErrslv( NUM_BYTES_G- 1 downto 0)
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