SURF  1.0
Code10b12bPkg Package Reference
Package Body >> 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 )

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
)

Libraries

ieee 

Use Clauses

std_logic_1164 
std_logic_arith 
std_logic_unsigned 
StdRtlPkg  Package <StdRtlPkg>

Constants

K_28_3_C  slv ( 9 downto 0 ) := " 0001111100 "
K_28_11_C  slv ( 9 downto 0 ) := " 0101111100 "
K_28_19_C  slv ( 9 downto 0 ) := " 1001111100 "
K_28_10_C  slv ( 9 downto 0 ) := " 0101011100 "
K_28_21_C  slv ( 9 downto 0 ) := " 1010111100 "
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 ) )

Types

Code5b6bArray array ( natural range <> ) of Code5b6bType

Subtypes

DisparityType  integer range - 1 to 1

Records

Code5b6bType  
out6b  slv ( 5 downto 0 )
expDisp  DisparityType
outDisp  DisparityType

Detailed Description

Definition at line 26 of file Code10b12bPkg.vhd.

Member Function Documentation

◆ toString()

string toString (   code in slv ( 9 downto 0 ) ,
  k in sl  
)
Function

Definition at line 41 of file Code10b12bPkg.vhd.

◆ conv() [1/2]

DisparityType conv (   d in sl  
)
Function

Definition at line 44 of file Code10b12bPkg.vhd.

◆ conv() [2/2]

sl conv (   d in DisparityType  
)
Function

Definition at line 45 of file Code10b12bPkg.vhd.

◆ getDisparity()

integer getDisparity (   vec in slv  
)
Function

Definition at line 47 of file Code10b12bPkg.vhd.

◆ encode10b12b()

encode10b12b (   dataIn in slv ( 9 downto 0 ) ,
  dataKIn in sl ,
  dispIn in sl ,
  dataOut out slv ( 11 downto 0 ) ,
  dispOut out sl  
)
Procedure

Definition at line 128 of file Code10b12bPkg.vhd.

◆ decode10b12b()

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  
)
Procedure

Definition at line 135 of file Code10b12bPkg.vhd.

Member Data Documentation

◆ ieee

ieee
Library

Definition at line 18 of file Code10b12bPkg.vhd.

◆ std_logic_1164

std_logic_1164
Package

Definition at line 19 of file Code10b12bPkg.vhd.

◆ std_logic_arith

std_logic_arith
Package

Definition at line 20 of file Code10b12bPkg.vhd.

◆ std_logic_unsigned

Definition at line 21 of file Code10b12bPkg.vhd.

◆ StdRtlPkg

StdRtlPkg
Package

Definition at line 23 of file Code10b12bPkg.vhd.

◆ K_28_3_C

K_28_3_C slv ( 9 downto 0 ) := " 0001111100 "
Constant

Definition at line 31 of file Code10b12bPkg.vhd.

◆ K_28_11_C

K_28_11_C slv ( 9 downto 0 ) := " 0101111100 "
Constant

Definition at line 32 of file Code10b12bPkg.vhd.

◆ K_28_19_C

K_28_19_C slv ( 9 downto 0 ) := " 1001111100 "
Constant

Definition at line 33 of file Code10b12bPkg.vhd.

◆ K_28_10_C

K_28_10_C slv ( 9 downto 0 ) := " 0101011100 "
Constant

Definition at line 35 of file Code10b12bPkg.vhd.

◆ K_28_21_C

K_28_21_C slv ( 9 downto 0 ) := " 1010111100 "
Constant

Definition at line 36 of file Code10b12bPkg.vhd.

◆ DisparityType

DisparityType integer range - 1 to 1
Subtype

Definition at line 43 of file Code10b12bPkg.vhd.

◆ Code5b6bType

Code5b6bType
Record

Definition at line 52 of file Code10b12bPkg.vhd.

◆ out6b

out6b slv ( 5 downto 0 )
Record

Definition at line 53 of file Code10b12bPkg.vhd.

◆ expDisp

Definition at line 54 of file Code10b12bPkg.vhd.

◆ outDisp

Definition at line 55 of file Code10b12bPkg.vhd.

◆ Code5b6bArray

Code5b6bArray array ( natural range <> ) of Code5b6bType
Type

Definition at line 58 of file Code10b12bPkg.vhd.

◆ D_CODE_TABLE_C

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 ) )
Constant

Definition at line 60 of file Code10b12bPkg.vhd.

◆ K_CODE_TABLE_C

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 ) )
Constant

Definition at line 94 of file Code10b12bPkg.vhd.


The documentation for this class was generated from the following file: