General Description: When I use COMPXLIB in the 5.1i software with Service Pack 1, the SmartModels are not compiled. In the COMPXLIB log file, the following type of errors appear:
For Verilog: "ERROR: cannot open C:\Xilinx_51i\smartmodel\sol\wrappers\mtiverilog\GT10_SWIFT.v"
For VHDL: "** Error: (vcom-7) Failed to open design unit file "C:\Xilinx_51i\smartmodel\sol\wrappers\mtivhdl\smartmodel_wrappers.vhd" in read mode. No such file or directory."
This only occurs on PCs. A a bug in COMPXLIB causes it to look in the "sol" directory instead of the "nt" directory.
An alternate way to work around the problem is by compiling the SmartModels manually. This can be done by copying the command line that was run from the COMPXLIB log file and replacing "sol" with "nt".
Example command lines illustrating how to manually compile the SmartModels with ModelSim are shown below.
For Verilog: vlog -work C:\mylibs\unisim_ver C:\Xilinx\smartmodel\nt\wrappers\mtiverilog\*.v vlog -work C:\mylibs\simprim_ver C:\Xilinx\smartmodel\nt\wrappers\mtiverilog\*.v
For VHDL: vcom -work C:\mylibs\unisim C:\Xilinx\smartmodel\nt\wrappers\mtivhdl\smartmodel_wrappers.vhd vcom -work C:\mylibs\simprim C:\Xilinx\smartmodel\nt\wrappers\mtivhdl\smartmodel_wrappers.vhd