13.23.27 Setting Simulation Options

You can set a variety of simulation options for your project.

To set your simulation options:
  1. From the Options menu, choose ProjectSettings.
  2. Click Simulation.
  3. Select your options and click OK.
  4. Use automatic Do file: Select if you do not want Libero to initialize ModelSim.
  5. User defined Do file: Enter the Do file name or click the browse button.
Automatic Do file content:
  • Include Do file - Select to execute the wave.do or other specified Do file. Use the wave.do file to customize the ModelSim Waveform window display settings.
  • Simulation Run Time - Specify how long the simulation should run in nanoseconds. If the value is 0, or if the field is empty, there will not be a run command included in the run.do file.
  • Testbench module/entity name - Specify the name of your testbench entity name. Default is “testbench,” the value used by WaveFormer Pro.
  • Top Level instance name in the testbench - Default is <top_0>, the value used by WaveFormer Pro. The Libero IDE Project Manager replaces <top> with the actual top level macro when you run ModelSim.
  • Vsim Command Type - Select Minimum (Min), Typical (Typ), or Maximum (Max).
  • Resolution: The default is family-specific, but you can customize it to fit your needs.
    Some custom simulation resolutions may not work with your simulation library. For example, simulation resolutions above 1 ns will cause errors if you are using SX-A devices (the simulation errors out because of an infinite zero-delay loop). Consult your simulation help for more information on how to work with your simulation library and detect infinite zero-delay loops caused by high resolution values.
    Table 13-14. Simulation Resolutions
    FamilyDefault Resolution

    ACT1, ACT2, ACT3

    1 ns

    MX

    1 ns

    DX

    1 ns

    SX, SX-A

    1 ns

    eX

    1 ns

    Axcelerator

    1 ps

    ProASIC

    1 ps

    ProASICPLUS

    1 ps

    ProASIC3/E

    1 ps

    IGLOO/e

    1 ps

    Fusion

    1 ps

  • Vsim additional options: Text entered in this field is added to the vsim command.
  • ModelSim library path: Enables you to choose the ModelSim default library for your device, or to specify your own ModelSim library. Enter the full pathname of your own library to use it for simulation.
  • Generate VCD file: Select this checkbox to have ModelSim automatically generate a VCD file based on the current simulation. VCD files can be imported into Designer and used in SmartPower. For best results, we recommend that a postlayout simulation be used to generate the VCD.
  • VCD filename: Specify the name of the VCD file that will be automatically generated by ModelSim.
  • Default: Restores factory settings.