initial implementation of MemwriteEngineV and test program