Setting compiler options
The VHDL and Verilog compilers (vcom and vlog, respectively) have numerous options that affect how a design is compiled and subsequently simulated. Outside of a project you can set the defaults for all future simulations using the Options > Compile (Main window) command. Inside of a project you can set these options on individual files or a group of files.
To set the compiler options in a project, select the file(s) in the Project tab, right click on the file names, and select Properties. The resulting dialog varies depending on the number and type of files you have selected. If you select a single VHDL or Verilog file, you'll see the General tab and the VHDL or Verilog tab, respectively. On the General tab, you'll see file properties such as Type, Path, and Size. If you select multiple files, the file properties on the General tab are not listed. Finally, if you select both a VHDL file and a Verilog file, you'll see all three tabs but no file information on the General tab.
The General tab includes these options:
- Exclude File from Build
Determines whether the file is excluded from the compile.- Compile to library
Specifies to which library you want to compile the file; defaults to the working library.- File Properties
A variety of information about the selected file (e.g, type, size, path). Displays only if a single file is selected in the Project tab.The definitions of the options on the VHDL and Verilog tabs can be found in the section "Setting default compile options" .
When setting options on a group of files, keep in mind the following:
- If two or more files have different settings for the same option, the checkbox in the dialog will be "grayed out." If you change the option, you cannot change it back to a "multi- state setting" without cancelling out of the dialog. Once you click OK, ModelSim will set the option the same for all selected files.
- If you select a combination of VHDL and Verilog files, the options you set on the VHDL and Verilog tabs apply only to those file types.
Model Technology Incorporated Voice: (503) 641-1340 Fax: (503)526-5410 www.model.com sales@model.com |