The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 28th, 2024, 2:41pm
Pages: 1
Send Topic Print
Gaussian noise real generator for pure digital oriented simulator (Read 2520 times)
Narasimhan
New Member
*
Offline



Posts: 3

Gaussian noise real generator for pure digital oriented simulator
Aug 24th, 2016, 6:07am
 
Is there an inbuilt verilogams/systemverilog function that generates real normal distribution. I am running ams simulation will all analog blocks modelled using ams wreal/systemverilog real so that spectre is not called and only the digital simulator is used.
I basically need something similar to $random but one that is gaussian rather than uniform and which outputs real value and not integers.
If no system function is present then is there a simple way to get one.

The $rdist_normal present in verilogams works only in analog scope.

Thanks in advance.
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: Gaussian noise real generator for pure digital oriented simulator
Reply #1 - Aug 24th, 2016, 7:43am
 
What about $dist_normal?
Back to top
 
 

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



Posts: 3

Re: Gaussian noise real generator for pure digital oriented simulator
Reply #2 - Aug 25th, 2016, 5:55am
 
$dist_normal returns an integer value. I guess I can convert it to real and use it. It would be better than writing code to generate normal distribution from scratch.
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.