cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
5,639 Views
Registered: ‎11-21-2007

How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Hello.

 

In VHDL2008 the 'float_pkg' and 'fixed_pkg' packages are compiled in the 'ieee' library.

This is, for ex., managed this way by MENTOR QuestaSim simulator.

 

However XILINX pre-compiles these packages into the (obsolete) 'ieee_proposed' library.

So I must use the later for synthesis, which works fine.

But then QuestaSim, of course, cannot find the 'ieee_proposed' library.

 

I checked (again) with the latest VIVADO 2016.3 release.

 

In order to reconcile synthesis and (VHDL2008 correct) simulation,

is there a way to tell VIVADO to "remap" its 'ieee_proposed' to 'ieee'?

 

Thanks.

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
9,979 Views
Registered: ‎11-09-2015

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Hi @herve,

 

I have made a mistakes in the command (no underscore between VHDL and 2008):

et_property file_type {VHDL 2008} [get_files ./myVHDL2008File.vhd]

 

Also, that is not the good command for non project flow. For non-project flow, the command is in the UG901:

vhdl2008.PNG

Should be good this time :)

 

Regards,

 

Florent

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos
10 Replies
Highlighted
Scholar
Scholar
5,628 Views
Registered: ‎04-26-2012

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

@herve "However XILINX pre-compiles these packages into the (obsolete) 'ieee_proposed' library."

 

Have you marked your source files as VHDL2008 in Vivado?

I believe this will cause Vivado to use ieee instead of ieee_proposed , see discussion here:

https://forums.xilinx.com/t5/Synthesis/Cannot-find-fixed-pkg-in-IEEE-or-IEEE-PROPOSED/m-p/718310#M19230

 

That said, I don't think fixed_pkg actually synthesizes correctly in Vivado, which AFAIK does not yet support package generics.

 

-Brian

 

0 Kudos
Highlighted
Moderator
Moderator
5,619 Views
Registered: ‎11-09-2015

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Hi @herve,

 

Just to complete @brimdavis, the fixed point support in VHDL 2008 should have been added to Vivado 2016.3

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Observer
Observer
5,615 Views
Registered: ‎11-21-2007

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Dear Brian,

 

you are asking:

Have you marked your source files as VHDL2008 in Vivado?

That looks good idea.

However I searched the VIVADO TCL command reference (UG835) for '2008'.

No match.

I am working in non-project mode.

 

Would tell me the TCL command to flag some VHDL source as '2008' ?

Thanks.

0 Kudos
Highlighted
Moderator
Moderator
5,614 Views
Registered: ‎11-09-2015

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Hi @herve,

 

The command you are looking for should be (after importing the file):

set_property file_type {VHDL_2008} [get_files ./myVHDL2008File.vhd]

 

Regards,

 

Florent

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Observer
Observer
5,610 Views
Registered: ‎11-21-2007

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Dear Florent.

 

TCL commands:

read_vhdl   ../src/ycop/ycop_fixed.vhd
set_property file_type {VHDL_2008} [get_files ../src/ycop/ycop_fixed.vhd]

 

VIVADO log_file:

...

ERROR: [Vivado 12-567] Unknown file type 'VHDL_2008'

 

Then searched VIVADO properties (UG912) for '2008'.

No match.

Any idea?

 

0 Kudos
Highlighted
Moderator
Moderator
9,980 Views
Registered: ‎11-09-2015

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Hi @herve,

 

I have made a mistakes in the command (no underscore between VHDL and 2008):

et_property file_type {VHDL 2008} [get_files ./myVHDL2008File.vhd]

 

Also, that is not the good command for non project flow. For non-project flow, the command is in the UG901:

vhdl2008.PNG

Should be good this time :)

 

Regards,

 

Florent

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos
Highlighted
Observer
Observer
5,604 Views
Registered: ‎11-21-2007

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Hi Florent.

 

It works (read_vhdl -vhdl2008)!

Strangely enough a TCL console:

$ help read_vhdl

does not tell about -vhdl2008.

 

Finally, synthesis is OK, VIVADO 2016.3, using the 'ieee' library.

 

Thanks a lot.

0 Kudos
Highlighted
Moderator
Moderator
5,600 Views
Registered: ‎11-09-2015

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Hi @herve,

 

I will ask to have the option mentionned in both the UG and the help of read_vhdl

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Scholar
Scholar
5,588 Views
Registered: ‎04-26-2012

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

@florentw "the fixed point support in VHDL 2008 should have been added to Vivado 2016.3"

 

Is this support actually documented anywhere ?

Are package generics now supported in 2016.3 ?

----------------------------------

The last time I checked in 2016.1, fixed_pkg did not synthesize correctly:

https://forums.xilinx.com/t5/Synthesis/Cannot-find-fixed-pkg-in-IEEE-or-IEEE-PROPOSED/m-p/718690#M19239

 

----------------------------------

 AR52304 still claims neither fixed_point nor math_real is supported:

http://www.xilinx.com/support/answers/52304.html

"Currently, the Vivado Synthesis tool does not support IEEE MATH_REAL and IEEE PROPOSED package libraries. "

 

I've been asking Xilinx to fix this AR since 2013.

https://forums.xilinx.com/t5/Synthesis/Vivado-Synthesis-support-for-IEEE-ieee-proposed-Fixed-Point/m-p/336255#M8555

https://forums.xilinx.com/t5/Synthesis/CR-Request-Update-UG901-Vivado-Synthesis-User-Guide-to-document/m-p/560689#M13344

 

----------------------------------

The current UG901 shipping with 2016.3 has not actually been updated since 2016.2:
http://www.xilinx.com/support/documentation/sw_manuals/xilinx2016_3/ug901-vivado-synthesis.pdf

 

Chapter 5, VHDL-2008, makes no mention of fixed_pkg that I can find.

 

The only mention of fixed_pkg is in the Plain-old-VHDL chapter 4 on page 191, mentioning ieee_proposed:fixed_pkg.bmp

-Brian

 

 

 

 

0 Kudos
Highlighted
Moderator
Moderator
3,370 Views
Registered: ‎11-09-2015

Re: How to remap the VHDL library ieee_proposed to ieee ?

Jump to solution

Hi Brian @brimdavis,

 

I am only aware of the support of fixed_pkg.

 

This information will be added to the UG901 (v2016.3) which should be published in the next few days.

 

For the moment, you can find this information in the "What's new in vivado design suite 2016.3" quick take video (link) around the time 5:20

2016.3.JPG

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos