Creating, Loading, and Saving Designs

Case Sensitivity and Slashes

 

The following commands are case sensitive. Use forward slashes to indicate pathes.

   

Parameter Notation Syntax

 

The notation used below for describing the parameters of individual commands is based on the Wirth Syntax Notation (WSN) :

  • Parameter names in curly brackets denote that you can specify no value, one value, or multiple values for this parameter in the command line.
  • Parameter names in square brackets denote optional parameters.
   

Command

Parameters

Description

LoadDesign

FileName

 

Command for loading the design FileName. Specify in FileName the path to the file in your file system and the file name itself. Don’t forget to state the file name extension (*.va or *.tcl). Use slashes for indicating the path to the design file.

Example:

LoadDesign c:/VA_TCL/BaseAreaGray8.va

If there is already a design loaded: Close the currently loaded design via command CloseDesign before using command LoadDesign.

CreateDesign

Name

Platform

Command for creating a new design with the name Name for a hardware platform Platform. For specifying the target platform of the design, you can either use

  • the VisualApplets library name for the platform (e.g., "mE4VQ4-GE"), or
  • the full name of the platform (e.g., "microEnable IV VQ4-GE"). Don’t forget to set the full name in quotes as required by TCL syntax for arguments that contain spaces.

Using capitals in the names has no effect.

SaveDesign

 

FileName

[SaveOption]

Command for saving a design under FileName. Specify in FileName the path to the file and the file name itself. Use slashes for indicating the path to the design file.

Don’t forget to add the file name extension to the file name.

  • If you specify file extension “.va”, your design is saved in the standard VisualApplets design format. All contents of the file are saved. Use the *.va file format as primary data format for your VisualApplets designs.
  • If you specify file extension “.tcl” in FileName, a TCL script is exported. Some contents of the design cannot be exported.

If you want to overwrite an existing file, set the optional parameter SaveOption to overwrite.

The following information is lost during export to Tcl script:

  • The local modifications you made in a user library element instance (to adapt the instance to the surrounding design) are lost. If you re-import a Tcl script into VisualApplets, the instance is inserted as a fresh copy of the user library element. The content of the instance in your design has not been saved in Tcl.
  • The text content of info boxes is kept in Tcl format. However, the formatting of info boxes is lost.

ChangePlatform

 

Platform

FileName

[SaveOption]

Command for converting the current design to another hardware platform Platform and saving the converted design as FileName.

To get an overview over all available hardware platforms, enter ChangePlatform ? - a list of the names of all available hardware platforms is returned. The currently selected hardware platform is displayed in the first entry of the list.

Specify the name of the desired hardware platform in parameter Platform. For specifying the target platform of the design, you can either use

  • the VisualApplets library name for the platform (e.g., "mE4VQ4-GE"), or
  • the full name of the platform (e.g., "microEnable IV VQ4-GE").

Using capitals in the names has no effect.

Specify in FileName the path to the file (using forward slashes), the file name itself, and the file name extension.

If you want to overwrite an existing file, set the optional parameter SaveOption to overwrite.

CloseDesign

 

[Mode]

 

Command for closing the currently open design.

If you set the optional parameter Mode to Discard, the design will be closed even if it containes changes that you didn’t save yet. The unsaved changes will be discarded.

If you use CloseDesign without using parameter Mode although the design containes changes that you didn’t save yet, the command will be terminated and you receive an according error message.

SetDesignProperty

 

Key

Value

Use this command to enter design properties for the currently loaded design.

There are four keys you can use:

  • ProjectName (the name you want the project to give)
  • Version (version of the design)
  • Description (description of the project).
  • TargetRuntime (specify here the operating system that will be used on the host PC(s) running this applet on the frame grabber.)

The following values are allowed:

  • Win64
  • Win32
  • Linux64
  • Linux32

Example:

SetDesignProperty TargetRuntime Win64

SetDesignClock

NewFrequency

Command for setting the basic clock frequency of the FPGA (in MHz).