Design and validation of an XTP simulator