cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
1,095 Views
Registered: ‎12-09-2017

Synplify attributes

Hello,
I want to use synplify attributes such as syn_keep and syn_preserve for a Vivado 2017.4 project.
For that I'm calling the synplify library as follows:

 

library synplify;
use synplify.attributes.all; 

 

But I'm getting an error during compilation  [Synth 8-4169] error in use clause: package 'attributes' not found in library 'synplify'

 

I checked in the installation directory of Vivado and I found a vhdl package synattr which is defining the attributes package of synplify library.

 

Do I miss something?

 

Thank you

0 Kudos
2 Replies
Highlighted
Mentor
Mentor
1,085 Views
Registered: ‎02-24-2014

I think you need to add the file "synattr.vhd" to the project explicitly.    I don't think Vivado is searching that directory and loading the package just based on the library declaration alone.    This only works for IEEE packages,  I think.  

Don't forget to close a thread when possible by accepting a post as a solution.
0 Kudos
Highlighted
Observer
Observer
1,075 Views
Registered: ‎12-09-2017

Hello @jmcclusk

 

When trying to add this file to project it won't (i.e. it doesn't appear in the source list), it's like if the tool prevent me doing so.

So I guess there is another way to do

0 Kudos