11.3.7. Reducing the time required for simulation

You may be able to significantly reduce the actual time taken for a simulation by dividing the specified clock speed by a factor of ten or a hundred, and multiplying the memory access times by the same factor. Take the time reported by the clock() function (or by SYS_CLOCK) and divide by the same factor.

This works because the simulated time is recorded internally in microseconds, but SYS_CLOCK only returns centiseconds. Dividing the clock speed shifts digits from the nanosecond count into the centisecond count, allowing the same level of accuracy but taking much less time to simulate.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D