Questa* Intel® FPGA Edition Simulation User Guide

ID 730191
Date 6/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.3.1.3. Compilation Example 3: Compile All .sv Files into Logical Library foo

The following example illustrates use of Tcl commands to compile all files into a logical library. You must add the commands to a .do file that you then run at a terminal using the vsim command, as Compilation Example 1 describes.

The following commands create the logical library foo and compile all .sv files in the current directory into foo:

vlib /tools/libraries/somedirectory
vmap foo /tools/libraries/somedirectory 
vlog -sv -work foo *.sv
quit