]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
small merge
authorIngo Froehlich <ingo@nomail.fake>
Mon, 20 Aug 2018 11:26:57 +0000 (13:26 +0200)
committerIngo Froehlich <ingo@nomail.fake>
Mon, 20 Aug 2018 11:26:57 +0000 (13:26 +0200)
1  2 
media_interfaces/sync/med_sync_control.vhd
media_interfaces/sync/rx_control.vhd
media_interfaces/sync/tx_control.vhd

index 9b7912f9fd5e5901f85f35c4b9dc0c51a148b1d2,48771a6b4e34b04f92acf21dcccf11c74955a5e5..0246a2debb5d08d58e6746b2fce9da7032425c9f
@@@ -70,9 -64,7 +70,9 @@@ architecture med_sync_control_arch of m
  signal rx_fsm_state : std_logic_vector(3 downto 0);
  signal tx_fsm_state : std_logic_vector(3 downto 0);
  signal wa_position_rx : std_logic_vector(3 downto 0);
- --signal start_timer       : unsigned(20 downto 0) := (others => '0'); --REAL
- signal start_timer       : unsigned(11 downto 0) := (others => '0'); --SIM
 -signal start_timer       : unsigned(21 downto 0) := (others => '0');
 +
++signal start_timer       : unsigned(21 downto 0) := (others => '0'); --REAL
++--signal start_timer       : unsigned(11 downto 0) := (others => '0'); --SIM
  
  signal request_retr_i     : std_logic;
  signal start_retr_i       : std_logic;
index 7cc82c9c5cf2840a9d3c1e4f32536d08a3f60627,2a049160cde165543177c976b6f8c901977556ed..63acb22243b85dd8e2a3e0c5e132772fa47e65dc
@@@ -231,10 -141,6 +231,11 @@@ PROC_RX_FSM : process begi
    rx_dlm_i             <= '0';
    idle_hist_i(3 downto 1) <= idle_hist_i(2 downto 0);
    idle_hist_i(0)       <= got_link_ready_i;
 +  crc_en               <= '0';
 +  crc_reset            <= '0';
 +  pulse_good           <= '0';
 +  pulse_bad            <= '0';
++
    
    case rx_state is
      when SLEEP =>
index 5ef8ec5e08c0207237aa7e548d4e535166963678,298e8d25167601d1cf12cedbea19a9545b207703..a52fcee35b1aafbf2c3d16d3e2ada161ec0ee119
@@@ -110,14 -103,7 +110,15 @@@ architecture arch of tx_control i
    signal crc_en                  : std_logic;
    signal crc_data                : std_logic_vector(7 downto 0);
    signal first_idle              : std_logic;
 -  signal toggle_idle             : std_logic;
 +  signal toggle_idle             : std_logic := '0';
 +
 +  signal send_chksum_counter : std_logic_vector(7 downto 0) := x"00";
 +
 +  --signal num_pak          : unsigned(15 downto 0) := (others => '0');
 +  signal resub_mode    : std_logic := '0';
 +  signal reset_retrans : std_logic;
 +  
++
  begin
  
  ----------------------------------------------------------------------
              TX_K_OUT           <= '1';
              current_state      <= SEND_IDLE_H;
              first_idle         <= first_idle;
-                     resub_mode <= '0';
 +            load_eop           <= '0';
++            resub_mode <= '0';
  
            when SEND_IDLE_H =>
              if rx_allow_qtx = '1' or toggle_idle = '1' then