cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
srdejong
Visitor
Visitor
715 Views
Registered: ‎04-23-2019

Compiling unisim for Modelsim DE 2020.1

Jump to solution

Hello,

I'm trying to manually compile unisim for Modelsim DE 2020.1. I'm running these commands in this order:

cd $XILINX/vhdl/src/unisims/primitive/
vcom -source -2008 -work <workdir>/unisim ../unisim_VCOMP.vhd
vcom -source -2008 -work <workdir>/unisim ../unisim_VPKG.vhd
vcom -source -2008 -work <workdir>/unisim -f vhdl_analyze_order

where <workdir> is the location where I want the libraries.

When I run these commands, I get this error from the last command:

vcom -source -2008 -work /hepuser/srdejong/work/BelleII_firmware/klm-trg/sim/tb_top/test2/unisim -f vhdl_analyze_order 
-- Loading package STANDARD
-- Loading package TEXTIO
-- Loading package std_logic_1164
-- Compiling entity AND2B1L
-- Compiling architecture AND2B1L_V of AND2B1L
-- Compiling entity AUTOBUF
-- Compiling architecture AUTOBUF_V of AUTOBUF
** Error: (vcom-13) Recompile unisim.vcomponents because ieee.std_logic_1164 has changed.
###### BSCAN_VIRTEX6.vhd(26): use unisim.vcomponents.all;
** Error (suppressible): BSCAN_VIRTEX6.vhd(26): (vcom-1195) Cannot find expanded name "unisim.vcomponents".
** Error: BSCAN_VIRTEX6.vhd(26): Unknown expanded name.
###### BSCAN_VIRTEX6.vhd(27): entity BSCAN_VIRTEX6 is
** Note: BSCAN_VIRTEX6.vhd(27): VHDL Compiler exiting
End time: 12:14:33 on Feb 26,2020, Elapsed time: 0:00:00
Errors: 3, Warnings: 0

Nothing after BSCAN_VIRTEX6.vhd is compiled.

I'm using ISE 14.7, and I'm running on Linux (ubuntu 16.04)

Do you know what might be causing this issue, and how I can resolve it? (It occurs with the "-93" or the "-2008" parameters)

Thank you.

 

0 Kudos
1 Solution

Accepted Solutions
srdejong
Visitor
Visitor
693 Views
Registered: ‎04-23-2019

I've solved this. Apparently going to the location of the unisim files and compiling them to another location doesn't work.

what should be done is:

cd $XILINX/vhdl/src/unisims/primitive/
vcom -source -2008 -work unisim ../unisim_VCOMP.vhd
vcom -source -2008 -work unisim ../unisim_VPKG.vhd
vcom -source -2008 -work unisim -f vhdl_analyze_order
mv unisim <work_dir>

or

vcom -source -2008 -work unisim $XILINX/vhdl/src/unisims/unisim_VCOMP.vhd
vcom -source -2008 -work unisim $XILINX/vhdl/src/unisims/unisim_VPKG.vhd
vcom -source -2008 -work unisim $XILINX/vhdl/src/unisims/primitive/<file1>
vcom -source -2008 -work unisim $XILINX/vhdl/src/unisims/primitive/<file2>
...

where <file1> and <file2> etc are the files in the order stated in "vhdl_analyze_order".

 

 

View solution in original post

0 Kudos
1 Reply
srdejong
Visitor
Visitor
694 Views
Registered: ‎04-23-2019

I've solved this. Apparently going to the location of the unisim files and compiling them to another location doesn't work.

what should be done is:

cd $XILINX/vhdl/src/unisims/primitive/
vcom -source -2008 -work unisim ../unisim_VCOMP.vhd
vcom -source -2008 -work unisim ../unisim_VPKG.vhd
vcom -source -2008 -work unisim -f vhdl_analyze_order
mv unisim <work_dir>

or

vcom -source -2008 -work unisim $XILINX/vhdl/src/unisims/unisim_VCOMP.vhd
vcom -source -2008 -work unisim $XILINX/vhdl/src/unisims/unisim_VPKG.vhd
vcom -source -2008 -work unisim $XILINX/vhdl/src/unisims/primitive/<file1>
vcom -source -2008 -work unisim $XILINX/vhdl/src/unisims/primitive/<file2>
...

where <file1> and <file2> etc are the files in the order stated in "vhdl_analyze_order".

 

 

View solution in original post

0 Kudos