SURF
Loading...
Searching...
No Matches
Code10b12bPkg Package Reference
Package >> Code10b12bPkg

Functions

string   toString ( code: in slv( 9 downto 0) , k: in sl )
DisparityType   conv ( d: in sl )
sl   conv ( d: in DisparityType )
integer   getDisparity ( vec: in slv )
string   toString ( code: in slv( 9 downto 0) , k: in sl )
DisparityType   conv ( d: in sl )
sl   conv ( d: in DisparityType )
integer   getDisparity ( vec: in slv )

Procedures

  encode10b12b(
dataIn: in slv ( 9 downto 0 )
dataKIn: in sl
dispIn: in sl
dataOut: out slv ( 11 downto 0 )
dispOut: out sl
)
  decode10b12b(
dataIn: in slv ( 11 downto 0 )
dispIn: in sl
dataOut: out slv ( 9 downto 0 )
dataKOut: inout sl
dispOut: inout sl
codeError: out sl
dispError: inout sl
)
  encode10b12b(
dataIn: in slv ( 9 downto 0 )
dataKIn: in sl
dispIn: in sl
dataOut: out slv ( 11 downto 0 )
dispOut: out sl
)
  decode10b12b(
dataIn: in slv ( 11 downto 0 )
dispIn: in sl
dataOut: out slv ( 9 downto 0 )
dataKOut: inout sl
dispOut: inout sl
codeError: out sl
dispError: inout sl
)

Libraries

ieee 
surf 

Use Clauses

std_logic_1164 
std_logic_arith 
std_logic_unsigned 
StdRtlPkg  Package <StdRtlPkg>

Constants

K_28_3_C  slv ( 9 downto 0 ) := b " 00011_11100 "
K_28_11_C  slv ( 9 downto 0 ) := b " 01011_11100 "
K_28_19_C  slv ( 9 downto 0 ) := b " 10011_11100 "
K_28_5_C  slv ( 9 downto 0 ) := b " 00101_11100 "
K_28_6_C  slv ( 9 downto 0 ) := b " 00110_11100 "
K_28_9_C  slv ( 9 downto 0 ) := b " 01001_11100 "
K_28_10_C  slv ( 9 downto 0 ) := b " 01010_11100 "
K_28_12_C  slv ( 9 downto 0 ) := b " 01100_11100 "
K_28_13_C  slv ( 9 downto 0 ) := b " 01101_11100 "
K_28_14_C  slv ( 9 downto 0 ) := b " 01110_11100 "
K_28_17_C  slv ( 9 downto 0 ) := b " 10001_11100 "
K_28_18_C  slv ( 9 downto 0 ) := b " 10010_11100 "
K_28_20_C  slv ( 9 downto 0 ) := b " 10100_11100 "
K_28_21_C  slv ( 9 downto 0 ) := b " 10101_11100 "
K_28_22_C  slv ( 9 downto 0 ) := b " 10110_11100 "
K_28_25_C  slv ( 9 downto 0 ) := b " 11001_11100 "
K_28_26_C  slv ( 9 downto 0 ) := b " 11010_11100 "
D_7_7_C  slv ( 9 downto 0 ) := b " 00111_00111 "
D_CODE_TABLE_C  Code5b6bArray ( 0 to 31 ) := ( ( " 000110 " , 1 , - 1 ) , ( " 010001 " , 1 , - 1 ) , ( " 010010 " , 1 , - 1 ) , ( " 100011 " , 0 , 0 ) , ( " 010100 " , 1 , - 1 ) , ( " 100101 " , 0 , 0 ) , ( " 100110 " , 0 , 0 ) , ( " 000111 " , - 1 , 0 ) , ( " 011000 " , 1 , - 1 ) , ( " 101001 " , 0 , 0 ) , ( " 101010 " , 0 , 0 ) , ( " 001011 " , 0 , 0 ) , ( " 101100 " , 0 , 0 ) , ( " 001101 " , 0 , 0 ) , ( " 001110 " , 0 , 0 ) , ( " 000101 " , 1 , - 1 ) , ( " 001001 " , 1 , - 1 ) , ( " 110001 " , 0 , 0 ) , ( " 110010 " , 0 , 0 ) , ( " 010011 " , 0 , 0 ) , ( " 110100 " , 0 , 0 ) , ( " 010101 " , 0 , 0 ) , ( " 010110 " , 0 , 0 ) , ( " 101000 " , 1 , - 1 ) , ( " 001100 " , 1 , - 1 ) , ( " 011001 " , 0 , 0 ) , ( " 011010 " , 0 , 0 ) , ( " 100100 " , 1 , - 1 ) , ( " 011100 " , 0 , 0 ) , ( " 100010 " , 1 , - 1 ) , ( " 100001 " , 1 , - 1 ) , ( " 001010 " , 1 , - 1 ) )
K_CODE_TABLE_C  Code5b6bArray ( 0 to 31 ) := ( ( " 000110 " , 1 , - 1 ) , ( " 010001 " , 1 , - 1 ) , ( " 010010 " , 1 , - 1 ) , ( " 100011 " , 1 , 0 ) , ( " 010100 " , 1 , - 1 ) , ( " 100101 " , 1 , 0 ) , ( " 100110 " , 1 , 0 ) , ( " 000111 " , - 1 , 0 ) , ( " 011000 " , 1 , - 1 ) , ( " 101001 " , 1 , 0 ) , ( " 101010 " , 1 , 0 ) , ( " 001011 " , 1 , 0 ) , ( " 101100 " , 1 , 0 ) , ( " 001101 " , 1 , 0 ) , ( " 001110 " , 1 , 0 ) , ( " 000101 " , 1 , - 1 ) , ( " 001001 " , 1 , - 1 ) , ( " 110001 " , 1 , 0 ) , ( " 110010 " , 1 , 0 ) , ( " 010011 " , 1 , 0 ) , ( " 110100 " , 1 , 0 ) , ( " 010101 " , 1 , 0 ) , ( " 010110 " , 1 , 0 ) , ( " 101000 " , 1 , - 1 ) , ( " 001100 " , 1 , - 1 ) , ( " 011001 " , 1 , 0 ) , ( " 011010 " , 1 , 0 ) , ( " 100100 " , 1 , - 1 ) , ( " 000011 " , 1 , - 1 ) , ( " 100010 " , 1 , - 1 ) , ( " 100001 " , 1 , - 1 ) , ( " 001010 " , 1 , - 1 ) )

Subtypes

DisparityType  integer range - 1 to 1
Code5b6bArray  array ( natural range <> ) of Code5b6bType

Records

Code5b6bType 

The documentation for this design unit was generated from the following files: