Changing clock frequency during simulation run

In reply to rkg_:

Use an interface that generates a clock signal with a variable delay. When you want to change the clock frequency, call a function in the interface with the new delay,