From 28701bcc0340829778d3eedcd47a46e57f0e3fd4 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Thu, 16 Jul 2020 17:23:45 +0200 Subject: [PATCH] remove one counter check to allow empty events --- gbe_trb/base/trb_net16_gbe_event_constr.vhd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gbe_trb/base/trb_net16_gbe_event_constr.vhd b/gbe_trb/base/trb_net16_gbe_event_constr.vhd index 9e19f87..7b97c6a 100644 --- a/gbe_trb/base/trb_net16_gbe_event_constr.vhd +++ b/gbe_trb/base/trb_net16_gbe_event_constr.vhd @@ -588,7 +588,7 @@ begin when LOAD_DATA => load_state <= x"5"; - if (load_eod_q = '1' and term_ctr = 33) then + if (load_eod_q = '1') then -- JMJM and term_ctr = 33 if (insert_padding = '1') then load_next_state <= LOAD_PADDING; else @@ -675,11 +675,11 @@ begin else header_ctr <= 15; end if; - elsif (load_current_state = LOAD_DATA and load_eod_q = '1' and term_ctr = 33 and loaded_queue_bytes = actual_q_size and insert_padding = '0') then + elsif (load_current_state = LOAD_DATA and load_eod_q = '1' and loaded_queue_bytes = actual_q_size and insert_padding = '0') then --JMJM and term_ctr = 33 header_ctr <= 31; - elsif (load_current_state = LOAD_DATA and load_eod_q = '1' and term_ctr = 33 and loaded_queue_bytes /= actual_q_size and insert_padding = '0') then + elsif (load_current_state = LOAD_DATA and load_eod_q = '1' and loaded_queue_bytes /= actual_q_size and insert_padding = '0') then --JMJM and term_ctr = 33 header_ctr <= 15; - elsif (load_current_state = LOAD_DATA and load_eod_q = '1' and term_ctr = 33 and loaded_queue_bytes /= actual_q_size and insert_padding = '1') then + elsif (load_current_state = LOAD_DATA and load_eod_q = '1' and loaded_queue_bytes /= actual_q_size and insert_padding = '1') then --JMJM and term_ctr = 33 header_ctr <= 3; elsif (load_current_state = LOAD_TERM and header_ctr = 0) then header_ctr <= 3; -- 2.43.0