Verification Guild
A Community of Verification Professionals

 Create an AccountHome | Calendar | Downloads | FAQ | Links | Site Admin | Your Account  

Login
Nickname

Password

Security Code: Security Code
Type Security Code
BACKWARD

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Modules
· Home
· Downloads
· FAQ
· Feedback
· Recommend Us
· Web Links
· Your Account

Advertising

Who's Online
There are currently, 47 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

  
Verification Guild: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile  ProfileDigest    Log inLog in 

General 'Synthesis off' pragma in VHDL

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Verification Guild Forum Index -> Design
View previous topic :: View next topic  
Author Message
espent
Junior
Junior


Joined: Mar 11, 2004
Posts: 5

PostPosted: Wed May 12, 2004 4:08 am    Post subject: General 'Synthesis off' pragma in VHDL Reply with quote

I want to include non-synthesisable verification code in the VHDL design code, both inside the RTL code and in the structural hierarchy. (The latter possibly to be kept as is into the VHDL netlist).
It seems the Synopsys pragmas '-- synopsys translate_off/on' work for several synthesis tools.

Does anyone know whether actually all major synthesis tools (incl. FPGA dedicated tools) support these Synopsys pragmas ?
Back to top
View user's profile
RCIngham
Senior
Senior


Joined: Feb 19, 2004
Posts: 194
Location: England (UK)

PostPosted: Tue May 18, 2004 7:05 am    Post subject: Reply with quote

A few other Synthesis tools will respond to
Code:
-- synopsys translate_off
and its converse. These include Mentor's PrecisionRTL.

A bunch use either
Code:
-- pragma translate_off
or
Code:
-- synthesis translate_off
but the whole situation is very unsatisfactory if you are trying to produce tool-independent HDL.
Back to top
View user's profile
apfitch
Senior
Senior


Joined: Jan 08, 2004
Posts: 94
Location: Ringwood, UK

PostPosted: Wed May 19, 2004 8:19 am    Post subject: Reply with quote

RCIngham wrote:
A few other Synthesis tools will respond to
Code:
-- synopsys translate_off
and its converse. These include Mentor's PrecisionRTL.

A bunch use either
Code:
-- pragma translate_off
or
Code:
-- synthesis translate_off
but the whole situation is very unsatisfactory if you are trying to produce tool-independent HDL.


Another possibility is to use a pre-processor. There was one called kpp, or you could be brave (foolish?) and learn m4.

If you want to bypass verification code in an architecture, a "pure VHDL" technique would be to add a generic and then use

debug1: if DEBUG = 1 generate
-- verification code
end generate;

though that depends if the synthesis tool attempts to parse the code within the generate.

Note that some synthesis tools still don't like generics that are BOOLEAN, but INTEGER always seems to work - hence the use of an integer type for the generic.

regards
Alan
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Verification Guild Forum Index -> Design All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Verification Guild © 2006 Janick Bergeron
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.158 Seconds