The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> Gaussian noise real generator for pure digital oriented simulator
https://designers-guide.org/forum/YaBB.pl?num=1472044022

Message started by Narasimhan on Aug 24th, 2016, 6:07am

Title: Gaussian noise real generator for pure digital oriented simulator
Post by Narasimhan on 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.

Title: Re: Gaussian noise real generator for pure digital oriented simulator
Post by Geoffrey_Coram on Aug 24th, 2016, 7:43am

What about $dist_normal?

Title: Re: Gaussian noise real generator for pure digital oriented simulator
Post by Narasimhan on 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.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.