The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> basic verilog-A syntax question
https://designers-guide.org/forum/YaBB.pl?num=1299724697

Message started by altaj on Mar 9th, 2011, 6:38pm

Title: basic verilog-A syntax question
Post by altaj on Mar 9th, 2011, 6:38pm

After hammering away all day with a novice's knowledge of verilog-A, I have a great sense of accomplishment at getting my modules to work, and match the transistor circuits very well.

My question: Is there a way to simplify the following lines from my code?

@(cross(V(rb) - vth, -1)) count=0;
@(cross(V(rb) - vth, -1)) n=0;

Can they be combined so that there is only one "@(cross(V(rb) - vth, -1))" to service both "=0's"?
Thanks,
John

Title: Re: basic verilog-A syntax question
Post by patrick on Mar 9th, 2011, 8:56pm

@(cross(V(rb) - vth, -1)) begin
   count=0;
   n=0;
end

Title: Re: basic verilog-A syntax question
Post by altaj on Mar 10th, 2011, 9:24am

Patrick,
THANKS!

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