The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> delay function in Verilog-A
https://designers-guide.org/forum/YaBB.pl?num=1131064266

Message started by driveforce on Nov 3rd, 2005, 4:31pm

Title: delay function in Verilog-A
Post by driveforce on Nov 3rd, 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


Title: Re: delay function in Verilog-A
Post by Andrew Beckett on 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.

Title: Re: delay function in Verilog-A
Post by driveforce on Nov 4th, 2005, 9:28am

Andrew,

Thank you. It works.

-driveforce

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.