From 2001dd76de4329d7fd0b8b06c44e07a4b4a0d772 Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 24 Jun 2010 15:41:08 +0000 Subject: [PATCH] hopefully fixed bug in sbuf5 --- trb_net_sbuf5.vhd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/trb_net_sbuf5.vhd b/trb_net_sbuf5.vhd index b4683db..6f7a2b9 100644 --- a/trb_net_sbuf5.vhd +++ b/trb_net_sbuf5.vhd @@ -259,16 +259,16 @@ begin NEXT_STATE <= RD5; end if; when WR5 => - if SYN_READ_IN = '0' and syn_dataready = '1' then + if( (SYN_READ_IN = '0') and (syn_dataready = '1') ) then NEXT_STATE <= WR5; - syn_dataready_x <= '1'; - elsif ( (SYN_READ_IN = '1') and (p_really_x = '1') ) then - NEXT_STATE <= RD2; + syn_dataready_x <= '1'; + elsif ( (SYN_READ_IN = '1') and (p_really_x = '1') ) then + NEXT_STATE <= RD3; -- was RD2 fifo_rd_en_x <= '1'; - syn_dataready_x <= '1'; + syn_dataready_x <= '1'; else NEXT_STATE <= WR5; - syn_dataready_x <= p_really_x; + syn_dataready_x <= p_really_x; end if; when WT5 => if( SYN_READ_IN = '1' ) then -- 2.43.0