The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 15th, 2024, 2:28pm
Pages: 1
Send Topic Print
Problem with flicker_noise and white_noise (Read 2525 times)
feihudui
New Member
*
Offline



Posts: 5

Problem with flicker_noise and white_noise
Aug 02nd, 2007, 7:25am
 
hallo,

i have just tried to add white noise to the resistance model with Verilog-Ams, so my code

`include "constants.vams"
`include "disciplines.vams"

module restest (p,n);

inout p,n;
electrical p,n;
electrical pi;
parameter real r=1.0k;

analog begin

V(p,pi) <+ I(p,pi)*r;
V(pi,n) <+ white_noise(4*`P_K*$temperature*r,"thermal");

end

endmodule

but it does not work. If i removed the noise statements, it functions. Analog, i want to bring flicker_noise to my VCO model. I have the same problem.
Back to top
 
 
View Profile   IP Logged
Marq Kole
Senior Member
****
Offline

Hmmm. That's
weird...

Posts: 122
Eindhoven, The Netherlands
Re: Problem with flicker_noise and white_noise
Reply #1 - Aug 2nd, 2007, 8:31am
 
Is the noise meant for small-signal noise analysis? white_noise will only give a result in a SPICE .NOISE analysis (or equivalent in other simulators.

B.t.w.: You can use a single branch instead of one with an internal node:

Code:
V(p,n) <+ I(p,n)*r;
V(p,n) <+ white_noise(4*`P_K*$temperature*r,"thermal"); 



That saves an internal node...
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Problem with flicker_noise and white_noise
Reply #2 - Aug 6th, 2007, 6:28am
 
Marq is correct; I suspect actually that the internal node is causing trouble in this case (though it shouldn't).  The curious thing about the contribution operator (<+) is that it accumulates; it's not an assignment.

You could also try the conductance formulation:
Code:
I(p,n) <+ V(p,n) / r;
I(p,n) <+ white_noise(4*`P_K*$temperature / r,"thermal");  

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.