Step 1: Create a Project to hold the MUT

<< Click to Display Table of Contents >>

Navigation:  Chapter 1B: Reactive Test Bench Option Design Flow >

Step 1: Create a Project to hold the MUT

Previous pageReturn to chapter overviewNext page

The project for the Reactive Test Bench Option is very simple because it just holds the model under test files and the generation language setting. If you are running the BugHunter interface, the project will expand to show a hierarchical view of the models and the stimulus-and-results diagram. Actel Libero users can skip this step because they will create the project in Libero, and Libero will launch WaveFormer Lite and extract the signals automatically.

Create a Project

•Choose Project > New Project menu function to open the New Project Wizard dialog.
•In the Project Name box, type in the name. This will be both the name of the project and the directory where the project and associated files are stored.
•Use Project Language to set  the parser language for the model under test files.
•Click the Finish button to create the project and close the dialog.

Project_for_rtb_tut

Add the Model Files

•In the Project window, under the Source Files section, right click and choose Copy New Source Files from the context menu. The picture shows WaveFormer's interface. BugHunter and TestBencher projects have a User Source Files folder that you can right click on. This will open a file open dialog.

project_copy_mut

•Use the Browse button to find the model under test files and add them to the project.

project_finished

(Optional) Instantiate multiple MUTs in the Project

If your project only hooks up to one Model Under Test, MUT, that is the top level model in the source files then you can skip to the next blue heading. However, this product supports multiple MUTs and multiple instantiations of the same MUT. First build the project, then select your MUT and edit the port mappings of the new MUTs as desired. This should be done before creating the transactions so that you have all signals available during the transaction build step.

•Press the Build Button to parse the source files and populate the project window tree with module information.

compileButton

•Drill down into the User Source files node and right click on a MUT to open the context menu.
•Choose Set as a Model Under Test.

Menu_SetMUT

•Notice that the module has been added to the Models Under Test tree node. The green color indicates the port mappings are using defaults that match the port names of the MUT.

Menu_CloneEditMUT

•Choosing Clone Model Under Test from the right click context menu (shown above), creates another instance of the MUT.

cloned_mut

•The program guesses at the port mappings by matching same name signals. However, choosing Edit Model Under Test from the right click context menu (shown above), opens a dialog that allows the model instance name to be changed and the port and parameter mappings to be edited.

EditInstMap_Top

•Double clicking on the port name opens a drop-down that lets you choose a different port or type in a different name.
•After you edit the instance mappings the icon in the tree will turn RED, to indicate that the program will not overwrite the ports if other things change in the project.

EditInstMap_Ports

•In a reactive test bench, you will need to add any new signals that you created in the Edit Instance Mapping dialog to the stimulus timing diagram so that the signals are declared in the testbench. Add the signal, rename it and make sure the type and size match the signal in the Edit Instance Mapping dialog. If this signal is to be driven by the testbench, you should also draw the waveform stimulus.

Extract the MUT Ports

•Press the Extract MUT ports into Diagram button on the main window button bar to extract the top level ports from mymut.v and dump them into a timing diagram window.

extract_mut_ports_button_results