The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 26th, 2024, 3:02am
Pages: 1
Send Topic Print
verilog-A syntax for a capacitor or resistor (Read 3580 times)
bigball
New Member
*
Offline



Posts: 2
US
verilog-A syntax for a capacitor or resistor
Apr 30th, 2014, 6:14pm
 
Hi:

Does VerilogA have the same syntax as verilog_AMS?

I'd like to add a capacitor and resistor to my verilogA modeling, is the following code correct? By the way, how do I add thermal noise to the resistor?  Thanks.


inout a,b;
electrical a,b;
parameter real r=4K from (0:inf);
parameter real c1=200p from (0:inf);
parameter real c2=6p from (0:inf);
electrical int;

capacitor #(.c(c1)) C1(a, int);
capacitor #(.c(c2)) C2(a, b);
resistor #(.r(r)) R(int, b)
Back to top
 
 
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: verilog-A syntax for a capacitor or resistor
Reply #1 - May 8th, 2014, 2:05am
 
bigball wrote on Apr 30th, 2014, 6:14pm:
Hi:

Does VerilogA have the same syntax as verilog_AMS?

I'd like to add a capacitor and resistor to my verilogA modeling, is the following code correct? By the way, how do I add thermal noise to the resistor?  Thanks.

...
Yes, Verilog-A is a sub-set of Verilog-AMS. Did you try your code? What was the result? The noise modelling functions should be described in the documentation.
- B O E
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: verilog-A syntax for a capacitor or resistor
Reply #2 - Jul 8th, 2014, 7:23am
 
The syntax you've shown uses the Spice compatibility documented in Annex E of the Verilog-AMS LRM; that means, you are actually adding Spice capacitors and resistor, and the simulator should be including the thermal noise of the resistor, as it would for a resistor in its native netlist format.

You could write your own module for the resistor and use white_noise to add thermal noise.

Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   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.