The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 25th, 2024, 11:55am
Pages: 1
Send Topic Print
syntax error for string parameter (Read 2885 times)
lily
Junior Member
**
Offline



Posts: 14
seattle
syntax error for string parameter
Oct 03rd, 2007, 7:35pm
 
I am trying to use string type parameter in my veriloga model like below, the spectre simulator always complain syntax error. I have checked the spectre veriloga reference, it gives the example  same as mine. Is there anyone know why I cannot use this string parameter?

Thanks!


--------------------------------------------------------
module INV( in,out,vdd,gnd );
input in,vdd,gnd;
output out;
electrical in,out,vdd,gnd;

parameter real Cin_in1=9.342169858000004E-12 ;
parameter real Cout=1.7384E-14*2 ;
parameter string proc="typ";
......................................
-----------------------------------------------------------

Error found by spectre during AHDL read-in.
   "./INV.va", line 15: "parameter string <<--? proc ="typ";"
   "./INV.va", line 15: Error: syntax error
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: syntax error for string parameter
Reply #1 - Oct 8th, 2007, 4:54am
 
What version of Spectre are you running?

In some cases, you may be able to simply omit "string" -- I think this makes the parameter an integer type, where the bytes are set by the ascii values of the string literal ("typ"), so you can do some comparisons on it in the module.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
lily
Junior Member
**
Offline



Posts: 14
seattle
Re: syntax error for string parameter
Reply #2 - Oct 11th, 2007, 6:41pm
 
Thanks for reply. Actually cadence 6.0 supports the string parameter and it seems lower version does not.

//lili
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.