Questa* Intel® FPGA Edition Simulation User Guide

ID 730191
Date 4/01/2024
Public
Document Table of Contents

3.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