Navigate:GUI Main Panel
Generic:Logic States Verilog Primitives VHDL Primitives

Compile Panel

The compile panel is used by getting a simple script in the top text area (with the lighter-colored background) and then running that script under GUI control with diagnostics displayed in the lower text area (labelled log:). There are several ways in which the script may be created as described below.

Compilation of a user circuit in TDX varies depending on whether verilog or VHDL is used to define the circuit. In the case of verilog there is one long command line such as:

verilogt -top gl85 acc_ctrl.ver alu_8bit.ver alu_ctrl.ver alulogic.ver buf8.ver ctl_lgc1.ver ctl_lgc2.ver dataaddr.ver decod2_4.ver decod3_8.ver flagunit.ver g16bctr.ver g4bctr.ver gl85.ver
For VHDL a number of separate invocations of the vhdl compiler are made.
vhdlt -x  acc_ctrl.vhd
vhdlt -x  alu_ctrl.vhd
vhdlt -x  alulogic.vhd
vhdlt -x  buf8.vhd
...
Note: The GUI runs the commands in the script directly; there is no intermediate shell to do variable substition, loops, conditionals etc.

Creating/Loading a Script

If you have an existing compilation script you are advised to use it. To do this, either Then push the load button. This will cause the script to be displayed in the top text area where it may be edited prior to being invoked.

If there is no existing script then one may be created by pressing the create button. This creates the 'Create Compile Script' panel.

Create Compile Script Panel

This panel is activated by pressing on the create button on the compile panel. It will formulate a simple script based on information you specify in the panel controls and the contents of the current directory. In simple cases the created script may be correct. In more complex cases it may be necessary to edit the resulting script which you can then save for future use.

Identify which source (Verilog or VHDL) files you wish to compile in the source files: area. Normally you would specify file patterns here. For instance: *.ver *.v The top level module must be identified by typing its name next to top level module:. In the case of VHDL compilations there should be a matching source file. For instance, if you identify the top level as 'bigtop', there should be a file that matches 'bigtop.*' selected by the source files: pattern.

The compiler flags: entry my contain any flags accepted by the relevent compiler. It is not checked for accuracy by the compiler.

The language (VHDL or Verilog) is determined automatically based on the presence of files ending in .vhd, .vhdl, .ver or .v. If you use alternative extensions you will need to select the mode manually by clicking on vhdl or verilog.

The create script button is only activated if the language (vhdl or verilog) has been identified. When you push it, the automatically-generated script will replace any existing text in the script area.

It should be noted that the script generator is not aware of module dependencies and, in the case of VHDL compilation, will probably get the wrong order of files. The user can edit the script to correct any problems encountered. If you have to do any editing to get a working script you will probably want to save the script (you will be asked for the name of the save file).

Compiler options to identify libraries etc may be added to each compiler invocation. Type the string to be inserted into the box to the right of compiler flags:. The GUI does not check these flags for accuracy.

Running the Script

After pushing compile, the script will be executed and feedback from the compilation will be displayed in the log section towards the bottom of the panel. At the start of the script execution (which is managed directly by the GUI), the compile button will be relabeled as stop. Pressing stop or cancel will stop the script after the current command. A subsequent press on cancel will dismiss the panel.
Last modified: Fri Dec 18 12:03:58 PST 1998
Copyright (c) Vervent Technologies Inc, 2007