genlib/fifo/AsyncFIFO: fix data corruption bug

This commit is contained in:
David Carne 2013-07-17 12:10:08 +02:00 committed by Sebastien Bourdeauducq
parent 939f01cee2
commit 9190568685
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class AsyncFIFO(Module, _FIFOInterface):
rdport = storage.get_port(clock_domain="read") rdport = storage.get_port(clock_domain="read")
self.specials += rdport self.specials += rdport
self.comb += [ self.comb += [
rdport.adr.eq(consume.q_binary[:-1]), rdport.adr.eq(consume.q_next_binary[:-1]),
self.dout_bits.eq(rdport.dat_r) self.dout_bits.eq(rdport.dat_r)
] ]