Return to Video

Simulator Testbench Interaction cs348 unit3new

  • 0:01 - 0:04
    A simulator is a program, that can load your hardware model and execute it's
  • 0:04 - 0:09
    behavior over time. It will simulate the model. Your test bench is separate to
  • 0:09 - 0:15
    the simulator. It's a separate process, and in this section we will discuss how
  • 0:15 - 0:22
    those two processes are linked. So here you have two boxes. One is the
  • 0:22 - 0:27
    simulator, one is the testbench and you've got a timeline. The simulator is the
  • 0:27 - 0:33
    master process and when it's initialized, it gives control to the testbench.
  • 0:33 - 0:38
    The testbench does the same. It initializes, it creates all the objects at the
  • 0:38 - 0:43
    pre-run generation phase. It does some initialization. And then, it calls back
  • 0:43 - 0:47
    to the simulator, which then enables you to say okay now I want to run the
  • 0:47 - 0:52
    model. So when you hit the Run button, the simulator will start evaluating the
  • 0:52 - 0:57
    model and it will move forward in time. Now, how do you get control to the
  • 0:57 - 1:03
    testbench is something which we call a callback. A callback, is an event which
  • 1:03 - 1:07
    you can program in your testbench, like we've just seen, events with a spe-,
  • 1:07 - 1:13
    specific symbol called @sim. This will cause the simulator to have an internal
  • 1:13 - 1:19
    event, which will stop it. So, when the simulator comes to this event, it will
  • 1:19 - 1:25
    suspend execution. And we'll pass control to the testbench. Now, the testbench
  • 1:25 - 1:29
    can evaluate all the events which are active currently, and all the other
  • 1:29 - 1:35
    methods and functions which are activated by an event. Once everything is
  • 1:35 - 1:39
    finished, the testbench passes control back to the simulator, which in turn,
  • 1:39 - 1:45
    wakes up. Starts evaluating the model again and moving it forward, until it
  • 1:45 - 1:51
    gets to the next callback and so on and so forth. So the callback events are
  • 1:51 - 1:58
    the important link between your e-code and your testbench, and the simulator.
Cím:
Simulator Testbench Interaction cs348 unit3new
Video Language:
English
Team:
Udacity
Projekt:
CS348 - Functional Hardware Verification
Duration:
01:58
Cogi-Admin hozzáadott egy fordítást

English subtitles

Felülvizsgálatok