1 ------------------------------------------------------------------------------- 2 -- File : Encode12b14b.vhd 3 -- Company : SLAC National Accelerator Laboratory 4 -- Created : 2016-10-07 5 -- Last update: 2017-05-01 6 ------------------------------------------------------------------------------- 7 -- Description: 10B12B Encoder 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 35 clkEn : in sl := '1';
-- Optional Clock Enable 46 end entity Encoder10b12b;
50 type RegType is record 57 constant REG_INIT_C : RegType := ( 63 signal r : RegType := REG_INIT_C;
101 seq :
process (
clk,
rst)
is 104 r <= REG_INIT_C after TPD_G;
105 elsif (rising_edge(clk)) then 107 r <= rin after TPD_G;
112 end architecture rtl;
FLOW_CTRL_EN_Gboolean := false
USE_CLK_EN_Gboolean := false
out dataOutslv( 11 downto 0)
RST_ASYNC_Gboolean := true
in dataInslv( 9 downto 0)
in rstsl :=not RST_POLARITY_G