finished SimulateDatapath