The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 5th, 2024, 9:34pm
Pages: 1
Send Topic Print
delay function in Verilog-A (Read 3937 times)
RobertZ
Community Member
***
Offline

the art of analog

Posts: 55
San Diego, CA
delay function in Verilog-A
Nov 03rd, 2005, 4:31pm
 
Hi, All,

I tried to instance a spectre primitives as following:
vsource #(.type("pwl"), .file("data.txt"), .delay(-0.2), .offset(0.5)) v1(plus, minus);

an error said "delay" is an reserved name for simulator library function. And I checked the parameter of vsource by "spectre -h vsource", delay is one of its parameters. so how to realize the dealy function here?

Anyone can help me?

Thanks a lot,
-driveforce

Back to top
 
 

Thanks,
Robert
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: delay function in Verilog-A
Reply #1 - Nov 4th, 2005, 4:53am
 
You need to escape the reserved word:

Code:
vsource #(.type("pwl"), .file("data.txt"), .\delay (-0.2), .offset(0.5)) v1(a, b); 



Note, you need to make sure there is a space at the end of the escaped word - after an escape (\) in Verilog/Verilog-A/Verilog-AMS, all characters are escaped up until the next space.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
RobertZ
Community Member
***
Offline

the art of analog

Posts: 55
San Diego, CA
Re: delay function in Verilog-A
Reply #2 - Nov 4th, 2005, 9:28am
 
Andrew,

Thank you. It works.

-driveforce
Back to top
 
 

Thanks,
Robert
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.