Fix for memories in BRAM.
Some FIFO fixes.