modified RAMfifo TB