The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 2:28pm
Pages: 1
Send Topic Print
AMS modeling of thermal noise in IUS62 (Read 2904 times)
fet
New Member
*
Offline



Posts: 4

AMS modeling of thermal noise in IUS62
Apr 07th, 2009, 9:57am
 
Hi, thank you in advance for your time and kindness.

I'm trying to model white noise using verilogams. However, the version I'm using (IUS62) does not support noise statement. So alternatively I'm trying to use random number generator. The code is quite straightforward:

-------------------------------------
noise_seed=1234;
rms_vthermal_noise=10m;
rthermal_noise = $rdist_normal(noise_seed, 0, rms_vthermal_noise)
$display ("Random noise is %g", rthermal_noise);
-------------------------------------

According to the Verilog-AMS Language Reference (version 5.7, March 2006), page 125, the generated random number changes at every time step. However, I found this not true by using the $display statement.

Anyone has the same problem? Thank you very much!
Back to top
 
 
View Profile   IP Logged
jbdavid
Community Fellow
*****
Offline



Posts: 378
Silicon Valley
Re: AMS modeling of thermal noise in IUS62
Reply #1 - Apr 8th, 2009, 7:20pm
 
Generally you only want to initialize the noise seed at the beginning, this is setting it on each timestep too..
reset the seed to the same value, you'll get the same result.
Back to top
 
 

jbdavid
Mixed Signal Design Verification
View Profile WWW   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: AMS modeling of thermal noise in IUS62
Reply #2 - Apr 14th, 2009, 4:58am
 
@(initial_step)
 noise_seed=1234;
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
fet
New Member
*
Offline



Posts: 4

Re: AMS modeling of thermal noise in IUS62
Reply #3 - Apr 20th, 2009, 9:29am
 
Thank both of you! I included it in the initial step. It works. The random number keeps changing.
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.