PoC.bus.stream.FrameGenerator
Todo
No documentation available.
Entity Declaration:
1 DATA_BITS : positive := 8;
2 WORD_BITS : positive := 16
3 );
4 port (
5 Clock : in std_logic;
6 Reset : in std_logic;
7 -- CSE interface
8 Command : in T_FRAMEGEN_COMMAND;
9 Status : out T_FRAMEGEN_STATUS;
10 -- Control interface
11 Sequences : in T_SLV_16;
12 FrameLength : in T_SLV_16;
13 -- OUT Port
14 Out_Valid : out std_logic;
15 Out_Data : out std_logic_vector(DATA_BITS - 1 downto 0);
16 Out_SOF : out std_logic;
17 Out_EOF : out std_logic;
18 Out_Ack : in std_logic
19 );
20end entity;
21
22
23architecture rtl of stream_FrameGenerator is
24 constant N_arith : natural := integer((real(DATA_BITS) / 168.0) +0.5);--(DATA_BITS + 83) / 168;integer(real(DATA_BITS9 / 168.0) +0.5);
25 type T_STATE is (
26 ST_IDLE,
27 ST_SEQUENCE_SOF, ST_SEQUENCE_DATA, ST_SEQUENCE_EOF,