add more pipeline stages to memwrite engine