]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
hopefully fixed bug in sbuf5
authorhadaq <hadaq>
Thu, 24 Jun 2010 15:41:08 +0000 (15:41 +0000)
committerhadaq <hadaq>
Thu, 24 Jun 2010 15:41:08 +0000 (15:41 +0000)
trb_net_sbuf5.vhd

index b4683db0d84e5990c12e3ac07d6f3f1b94e55e85..6f7a2b9b443825f7372f8d282cab86bea33619f7 100644 (file)
@@ -259,16 +259,16 @@ begin
                                                        NEXT_STATE      <= RD5;\r
                                                end if;\r
                when WR5    =>\r
-            if SYN_READ_IN = '0' and syn_dataready = '1' then\r
+                                               if( (SYN_READ_IN = '0') and (syn_dataready = '1') ) then\r
                                                        NEXT_STATE      <= WR5;\r
-              syn_dataready_x <= '1';\r
-            elsif ( (SYN_READ_IN = '1') and (p_really_x = '1')  ) then\r
-                                                       NEXT_STATE      <= RD2;\r
+                                                       syn_dataready_x <= '1';\r
+                                               elsif ( (SYN_READ_IN = '1') and (p_really_x = '1')  ) then\r
+                                                       NEXT_STATE      <= RD3; -- was RD2\r
                                                        fifo_rd_en_x    <= '1';\r
-              syn_dataready_x <= '1';\r
+                                                       syn_dataready_x <= '1';\r
                                                else\r
                                                        NEXT_STATE      <= WR5;\r
-              syn_dataready_x <= p_really_x;\r
+                                                       syn_dataready_x <= p_really_x;\r
                                                end if;\r
                when WT5    =>  \r
                                                if( SYN_READ_IN = '1' ) then\r