Simulating and producing the timing diagrams using ModelSim