Return to Video

Test Phases cs348 unit3new

  • 0:00 - 0:04
    In the previous section, we talked about the synchronization between the
  • 0:04 - 0:09
    Testbench and the simulator. Now, within the Testbench, we have many objects
  • 0:09 - 0:12
    which also need to be synchronized amongst each other and also to the
  • 0:12 - 0:19
    simulation flow. The solution to this is called the Test Phase Mechanism. This
  • 0:19 - 0:24
    is an overall schedule, which calls predefined empty methods in all
  • 0:24 - 0:30
    user-defined objects. Let's have a look at the different phases. Before we
  • 0:30 - 0:35
    start simulation, we have some Setup phase. here, you can configure your
  • 0:35 - 0:41
    Testbench and make sure everything is setup correctly. Then, we have the
  • 0:41 - 0:46
    Pre-run Generation phase. Every object instantiated insist or further down the
  • 0:46 - 0:53
    hierarchy, will be allocated and the contents will be randomized in this phase.
  • 0:53 - 0:57
    All the user-defined objects have empty methods called pre_generate and
  • 0:57 - 1:02
    post_generated, which will be called. We could use, for example, post_generate
  • 1:02 - 1:06
    to calculate the parity and use that instead of using a constraint, and calling
  • 1:06 - 1:12
    a method in generation. After this phase, we have the Connect phase, during
  • 1:12 - 1:17
    which the components of the Testbench are bound to specific components in the
  • 1:17 - 1:22
    hardware model. We will talk in more detail about this phase when we talk about
  • 1:22 - 1:28
    units and ports. Now, we come to the start of the simulation and we enter the
  • 1:28 - 1:33
    Run phase. When this phase starts, a Run method is called in all the objects in
  • 1:33 - 1:39
    your Testbench. We have used this in some examples before, to start activity in
  • 1:39 - 1:44
    a Testbench. So here, you can start all your threads and all your codes and you
  • 1:44 - 1:49
    know that the simulation has started. At the end of simulation, we have the
  • 1:49 - 1:55
    extract and the check phase. And again, we have some pre-defined methods here
  • 1:55 - 2:00
    called check and finalize, which you can use to make sure that your Testbench
  • 2:00 - 2:03
    has finished correctly.
Cím:
Test Phases cs348 unit3new
Video Language:
English
Team:
Udacity
Projekt:
CS348 - Functional Hardware Verification
Duration:
02:04
Cogi-Admin hozzáadott egy fordítást

English subtitles

Felülvizsgálatok