The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 12:34pm
Pages: 1
Send Topic Print
basic verilog-A syntax question (Read 2292 times)
altaj
Junior Member
**
Offline



Posts: 11

basic verilog-A syntax question
Mar 09th, 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
Back to top
 
 
View Profile   IP Logged
patrick
Junior Member
**
Offline



Posts: 30
Santa Rosa, CA.
Re: basic verilog-A syntax question
Reply #1 - Mar 9th, 2011, 8:56pm
 
@(cross(V(rb) - vth, -1)) begin
   count=0;
   n=0;
end
Back to top
 
 
View Profile   IP Logged
altaj
Junior Member
**
Offline



Posts: 11

Re: basic verilog-A syntax question
Reply #2 - Mar 10th, 2011, 9:24am
 
Patrick,
THANKS!
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.