12 use IEEE.STD_LOGIC_1164.
ALL;
14 use IEEE.NUMERIC_STD.
ALL;
16 library TOB_rdout_lib;
39 signal double_reg_1 : STD_LOGIC_VECTOR (31 downto 0);
40 signal double_reg_2 : STD_LOGIC_VECTOR (31 downto 0);
50 SIGNAL current_state : STATE_TYPE;
51 signal count : integer range 0 to 7;
52 signal tmp : std_logic_vector (7 downto 0);
56 U0_clk_proc :
process (
CLK_IN)
65 U3_rd_XTOB_fsm :
process (
CLK_IN)
70 current_state <= idle ;
73 double_reg_1 <= X"00000000";
74 double_reg_2 <= X"00000000";
77 double_reg_2 <= double_reg_1;
83 if double_reg_1 = double_reg_2 then
84 if double_reg_2 = X"00000000" or double_reg_2 = X"000000BC" then
85 current_state <= idle ;
87 current_state <= ser_1 ;
90 current_state <= idle ;
95 current_state <= ser_2 ;
100 current_state <= ser_2 ;
102 current_state <= idle ;
113 tmp <= std_logic_vector(to_unsigned(count, tmp'length));
Top of fsm_TOB_double_word for process FPGA.
Top of fsm_TOB_double_word for process FPGA.
out double_counter_en std_logic
Enable double counter updon detection of double identical words.
out DPR_wr_enable STD_LOGIC
DPRAM write enable.
in CLK_IN STD_LOGIC
Clock input signal.
in TOB_data_in STD_LOGIC_VECTOR( 31 downto 0)
TOB data input.
in rst_in std_logic
Reset input.