350 Chapter Fourteen
Figure 14-4
Compile VHDL
Source Dialog Box.
To compile a file from the GUI, the file is selected in the compile dialog
box as shown in Figure 14-4.
The GUI includes a file browser that allows the designer to select the
files to compile and then click the Compile button to compile the file.
To compile a file from the command line interface, the following command
is issued:
vcom cpu_lib.vhd
This checks that the VHDL syntax is correct and converts the VHDL
syntax to the binary format needed to simulate the design. Following is a
complete script that compiles all of the files in the proper order:
vcom cpu_lib.vhd
vcom alu.vhd
vcom comp.vhd
vcom reg.vhd
vcom shift.vhd
vcom control.vhd