The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 16th, 2024, 8:19pm
Pages: 1
Send Topic Print
Instantiating a Spectre source in Verilog-A (Read 2885 times)
Croaker
Senior Member
****
Offline



Posts: 235

Instantiating a Spectre source in Verilog-A
Nov 05th, 2007, 1:24pm
 
Hello,  I am trying to instantiate a Spectre voltage pulse source in my Verilog-A code like so:
vsource #( .type("pulse"), .val0( vss ), .val1( vdd ), .delay( tdel ), .rise( trise ), .fall( tfall ), .width( twidth ), .period( tperiod ) ) v1( a, b );

I get the error that "delay" is a reserved name of a simulator library function.

How can I instantiate this module without running into this delay error?  It seems I must pass the parameters this way, as just passing the values in order doesn't work.

Help!

Cry
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Instantiating a Spectre source in Verilog-A
Reply #1 - Nov 6th, 2007, 6:06am
 
Annex E of the Verilog-A LRM says you should do:

vpulse #(.val0( vss ), .val1( vdd ), .td( tdel ), .rise( trise ), .fall( tfall ), .width( twidth ), .period( tperiod ) ) v1( a, b );

Back to top
 
 

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



Posts: 235

Re: Instantiating a Spectre source in Verilog-A
Reply #2 - Nov 7th, 2007, 11:27am
 
Thank you!  I did some digging and found another workaround.  The reserved function 'delay' must be escaped, like so:

.\delay ( tdel )

Put a '\' before the word and a ' ' (space) after it.

Cheers!   Smiley
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.