fix bug in entry/exit control logic for MemreadEngineV
code reorg
a nice pattern for pipelined fanin/fanout