From: hadeshyp Date: Wed, 12 Dec 2007 13:41:44 +0000 (+0000) Subject: removed bug in bram fifo, Jan X-Git-Tag: oldGBE~662 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=69b96bc16b16510a1c4a25b8c64480f185d93a15;p=trbnet.git removed bug in bram fifo, Jan --- diff --git a/xilinx/trb_net16_bram_fifo.vhd b/xilinx/trb_net16_bram_fifo.vhd index 9730b4f..6380721 100644 --- a/xilinx/trb_net16_bram_fifo.vhd +++ b/xilinx/trb_net16_bram_fifo.vhd @@ -165,7 +165,7 @@ begin if (fifo_gsr = '1') then read_after_write <= '0'; else - if empty = '1' and write_enable = '1' then + if empty = '1' and read_after_empty='1' and write_enable = '1' then read_after_write <= '1'; else read_after_write <= '0';