Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - DC vhdl question

 
Thread Tools Search this Thread
Old 06-22-2005, 07:28 AM   #1
Default DC vhdl question


Hello,

A customer of ours is using one of our IPs and reports that
DC (for synthesis) complains about two things :

*A* wouldn't support 'pos as in character'pos ??
(which is very handy for cahacter to slv conversion)

*B* wouldn't support booleans in generic ??

I emailed the Synopsys hotline, but got the answer that only
Synopsys customers can ask such questions...

A pointer to a document stating the current limitations of DC
would be very appreciated

Thx in advance,

Bert Cuzeau



Bert Cuzeau
  Reply With Quote
Old 06-22-2005, 05:25 PM   #2
Acci
 
Posts: n/a
Default Re: DC vhdl question
Just a test



Acci
  Reply With Quote
Old 06-22-2005, 05:33 PM   #3
Acci
 
Posts: n/a
Default Re: DC vhdl question
Hi Bert,

Synopsys DC has actually two VHDL frontends (parsers).
The standard one, which is enabled by default, is just crap. It only suppoprts
an extremely limited number of VHDL constructs, which makes it almost unusable
for modern parameterizable designs.
The newer one, called PRESTO, must be explicitly enabled. You can do this by
setting the 'hdlin_enable_presto_for_vhdl' to 'true' in your dc.setup script.

Hope this helps.



Acci
  Reply With Quote
Old 06-22-2005, 06:18 PM   #4
Mike Treseler
 
Posts: n/a
Default Re: DC vhdl question
Bert Cuzeau wrote:

> A customer of ours is using one of our IPs and reports that
> DC (for synthesis) complains about two things :
>
> *A* wouldn't support 'pos as in character'pos ??
> (which is very handy for cahacter to slv conversion)


At one time, mentor synthesis allowed character'pos
for constant use only. In this case a function
"buffer" like this did the trick:

function char_pos (char_v : character)
return natural is
type ascii_t is array (character) of natural;
function ascii_c return ascii_t is
variable table_v : ascii_t;
begin
for i in character loop
table_v(i) := character'pos(i);
-- DC might buy this as i is a loop index "constant"
end loop;
return table_v;
end function ascii_c;
begin
return ascii_c(char_v);
end function char_pos;

> *B* wouldn't support booleans in generic ??


The only "sure thing" type for
generic synthesis is integer.

I have never used DC or know the errata.
Your customer may be the best source.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 06-23-2005, 05:36 PM   #5
Bert Cuzeau
 
Posts: n/a
Default Re: DC vhdl question
Thank you both for your excellent answers.
The function may be a good workaround, and

I also suspect that presto wasn't enabled.


Thx again,

Bert Cuzeau



Bert Cuzeau
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VHDL sll shift question ohaqqi Hardware 4 09-29-2009 11:27 AM
How to execute an external software from VHDL? And how to interface VHDL with JAVA? becool_nikks Software 0 03-06-2009 07:08 PM
Help on auto conversion from Matlab to vhdl on filter design hardheart Hardware 0 12-07-2007 09:19 AM
Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good God DVD Video 3 04-25-2005 04:19 PM
Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good Filthy Mcnasty DVD Video 0 04-25-2005 04:29 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46