![]() |
Network Wizard for VHDL Test Benches
|
Functions | |
| t_slv_arr | f_bitstuff_enc ( data: in t_slv_arr run_length: in positive run_type: in std_logic get_length: in boolean false ) |
| t_slv_arr | f_bitstuff_enc ( data: in t_slv_arr run_length: in positive run_type: in std_logic '1' ) |
| Encode data. | |
| natural | f_bitstuff_enc_len ( data: in t_slv_arr run_length: in positive run_type: in std_logic '1' ) |
| Get encoded data length. | |
| t_slv_arr | f_bitstuff_dec ( data: in t_slv_arr run_length: in positive run_type: in std_logic get_length: in boolean false ) |
| t_slv_arr | f_bitstuff_dec ( data: in t_slv_arr run_length: in positive run_type: in std_logic '1' ) |
| Decode data. | |
| natural | f_bitstuff_dec_len ( data: in t_slv_arr run_length: in positive run_type: in std_logic '1' ) |
| Get decoded data length. | |
|
Function |
Encode data.
| data | Data array (1bit) |
| run_length | Maximum run length before stuff bit is inserted |
| run_type | Run-length value (default '1') |
Encode data with bit-stuffing. If a sequence of bits with value run_type longer than run_length is enconutered, a stuff bit of inverse value is inserted.
Example use
|
Function |
Get encoded data length.
| data | Data array (1bit) |
| run_length | Maximum run length before stuff bit is inserted |
| run_type | Run-length value (default '1') |
Get length of encoded data after applying bit stuffing.
Example use
|
Function |
Decode data.
| data | Data array (1bit) |
| run_length | Maximum run length before stuff bit is inserted |
| run_type | Run-length value (default '1') |
Decode bit-stuffed data. Remove bits inserted by the encoding process.
Example use
|
Function |
Get decoded data length.
| data | Data array (1bit) |
| run_length | Maximum run length before stuff bit is inserted |
| run_type | Run-length value (default '1') |
Get length of decoded data after bit stuffing is removed.
Example use