# Why simulation runs for hours when they are meant for running for few nanoseconds?

**URL:** <https://verificationacademy.com/forums/t/why-simulation-runs-for-hours-when-they-are-meant-for-running-for-few-nanoseconds/41805>\
**Category:** SystemVerilog\
**Tags:** coverage-UVM-module-class, SystemVerilog\
**Created:** [June 12, 2023, 6:22am UTC](https://verificationacademy.com/forums/t/why-simulation-runs-for-hours-when-they-are-meant-for-running-for-few-nanoseconds/41805 "2023-06-12T06:22:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyhome0911](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/76d3ee/32.png) [@skyhome0911](https://verificationacademy.com/forums/u/skyhome0911)\
**Post date:** [June 12, 2023, 6:22am UTC](https://verificationacademy.com/forums/t/why-simulation-runs-for-hours-when-they-are-meant-for-running-for-few-nanoseconds/41805/1 "2023-06-12T06:22:05Z")

</div>

Hi All,

I have one general doubt, why do simulation runs for hours even though the simulation time in the run times are in nana seconds and are meant for running for some nanoseconds. I am pursuing masters in VLSI, sorry for noob questions asked.

Thank You

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [June 12, 2023, 8:22pm UTC](https://verificationacademy.com/forums/t/why-simulation-runs-for-hours-when-they-are-meant-for-running-for-few-nanoseconds/41805/2 "2023-06-12T20:22:41Z")

</div>

_In reply to [skyhome0911](https://verificationacademy.com/forums/t/why-simulation-runs-for-hours-when-they-are-meant-for-running-for-few-nanoseconds/41805):_

I think [clay animation](https://www.instructables.com/How-to-Make-an-Awesome-Claymation/) is a good analogy to logic simulation.

Suppose we want to create a movie of a clay figure walking down the street. That figure represents our “model” of person in clay. Imagine the number of steps you have to do for each 1 second frame of the movie. You have to move yourself into the frame, adjust several body parts of the figure, move out of the frame, then take a picture. If your are really skilled at it, maybe you can do one frame every 5 seconds.

But now try to create a movie of a busy city street with 100s of people, cars, etc. that need animation. It’s going to take hours for that one person to make all the adjustments for one frame. You could add more people to help, but not so much that they start getting in the way of each other. You could also take shortcuts by not providing as many detailed movements for subjects not in the focus of the frame.

Now back to VLSI (_Very Large_ Scale Integration). We are trying to animate millions, and now billions of devices running concurrently in software where each step in simulation is at best taking a single CPU instruction cycle. Of course there are always optimizations and higher abstraction levels that can improve performance to some degree.

---

<div class="post-metadata">

**Author:** ![skyhome0911](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/76d3ee/32.png) [@skyhome0911](https://verificationacademy.com/forums/u/skyhome0911)\
**Post date:** [June 13, 2023, 4:14am UTC](https://verificationacademy.com/forums/t/why-simulation-runs-for-hours-when-they-are-meant-for-running-for-few-nanoseconds/41805/3 "2023-06-13T04:14:27Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/why-simulation-runs-for-hours-when-they-are-meant-for-running-for-few-nanoseconds/41805/2):_  
Thank You so much Dave for such great analogy. Understood it now.
