~ruther/jesd204b-vhdl

ref: 81cb6508889df0cfde1f2af76affdd3fbb81a3db jesd204b-vhdl/src/data_link/data_link_pkg.vhd -rw-r--r-- 657 bytes
81cb6508 — František Boháček feat(link): wait for K character in frame alignment before setting aligned 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
library ieee;
use ieee.std_logic_1164.all;

package data_link_pkg is

  type character_vector is record
    kout            : std_logic;  -- Whether the character is a control character
    disparity_error : std_logic;  -- Whether there was a disparity error (if this is true, the character will still be correct)
    missing_error   : std_logic;  -- Whether the character was not found in the table
    d8b             : std_logic_vector(7 downto 0);  -- The decoded data
  end record character_vector;

  type link_state is (
    INIT,
    CGS,
    ILAS,
    DATA,
    ERR);                               -- States of the link

end package data_link_pkg;
Do not follow this link