library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
-- synthesis translate_off
library unisim;
use unisim.all;
-- synthesis translate_on
library virtex;
use virtex.components.all;
...
This works fine in Synplify, but for ModelSim I have to comment out the two
lines...
--library virtex;
--use virtex.components.all;
Does anyone know a better way to "hide" these from ModelSim?
Thanks,
Barry Brown
Barry Brown wrote:
--
--Ray Andraka, P.E.
President, the Andraka Consulting Group, Inc.
401/884-7930 Fax 401/884-7950
email r...@andraka.com
http://www.andraka.com
"They that give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
-Benjamin Franklin, 1759
@W: Fifo.vhd(31): Unbound component RAMB4_S4_S4 mapped to black box
I thought that sounded bad, but do you mean I can just ignore it?
I tried it, and the Xilinx P&R works fine, so I guess all is right with the
world. So then what does Synplify include that Virtex library for?
Thanks,
Barry
"Ray Andraka" <r...@andraka.com> wrote in message
news:3D62B4D4...@andraka.com...
In your case nothing more is needed and your component declaration
is all you need.
- Ken
You can also instantiate LUT4's the same way, provided you put a user attribute
(INIT=) on it and add a pragma'd out generic for the init for simulation.
> I need to use some Xilinx primitives in my VHDL, and they seem to be in
> different libraries for use with ModelSim and Synplify. Here's what I have
> so far...
I always used
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
--pragma translate_off
library UNISIM;
use UNISIM.vcomponents.all;
--pragma translate_on
...
As far as I remember this worked for both programs.
Regards,
Patrick
Patrick Loschmidt wrote:
--
Create a package called virtexdummy that is just an empty shell:
package components is
-- empty
end components;
Within modelsim compile virtexdummy into a library called "dummy". Use the
library mapping tools to map the name virtex to library "dummy". Now
modelsim will have something to map the library name to and will not
complain and you don't have to comment stuff in/out when going from
synthesis to simulation.
Back when I was using Synplicity, I had to do the same thing with the
library "unisim" when synthesizing.
JC
It's safe (and useful) to synthesize unisim_vcomp.vhd - no need for
tricks or the Synplify virtex library.
Hamish
--
Hamish Moffatt VK3SB <ham...@debian.org> <ham...@cloud.net.au>