]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
error mask by default disabled
authorIngo Froehlich <ingo@nomail.fake>
Fri, 21 Feb 2020 07:15:57 +0000 (08:15 +0100)
committerIngo Froehlich <ingo@nomail.fake>
Fri, 21 Feb 2020 07:15:57 +0000 (08:15 +0100)
media_interfaces/sync/med_sync_control.vhd
media_interfaces/sync/rx_control.vhd

index 37a11464489833972044384df401655f5d304c51..6b5c990a3cdf04c76038c10082b901920b4799e6 100644 (file)
@@ -125,7 +125,7 @@ signal tx_force_pak_error      : std_logic := '0';
 signal send_chksum             : std_logic := '0';      
 signal got_chksum              : std_logic;
 signal got_fatal_error         : std_logic;
-signal enable_chksum_reg       : std_logic_vector(5 downto 0) := "000000";
+signal enable_chksum_reg       : std_logic_vector(5 downto 0) := "111111";
 signal enable_chksum_comb      : std_logic_vector(5 downto 0);
 
 begin
index 014ca44195d57097c7a043f7edd5ea411bdb18c0..82905c8e299b480b73b3a5b021f22525101c08fc 100644 (file)
@@ -455,14 +455,14 @@ PROC_RX_FSM : process begin
       end if;
       if use_crc_200 = '1' and num_pakets /= 0 and force_crc_error_int = '0'
         and disable_crc = '0'
-        and enable_chksum_200(0) = '1' and enable_chksum_200(3) = '1' then
-        -- IDLE only allowed after CRC, must be disabled until explicitly
-        -- switched on
---        rx_state <= FIRST;
-        force_crc_error_int <= '1';
-        if enable_chksum_200(4) = '1' and num_pakets=5 then
-          force_crc_error_int <= '0';  --mask obligatory CRC after 5 pakets
-        end if;
+        and enable_chksum_200(0) = '1' then
+          if enable_chksum_200(3) = '1' and num_pakets /= 5 then
+            -- No IDLE in between transfer
+            force_crc_error_int <= '1';
+          elsif enable_chksum_200(4) = '1' and num_pakets=5 then
+            --no obligatory CRC after 5 pakets
+            force_crc_error_int <= '1';  
+          end if;
       end if;
      
     when GET_DATA =>