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.
If there is no existing script then one may be created by pressing the create button. This creates the 'Create Compile Script' panel.
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.