Hi All,
I was trying to use a $rdist_uniform to generate random numbers. The code portion is:
Code:
@(cross(V(clk) - fullscale/2.0,-1))
begin
th = $rdist_uniform(seed, lo, hi);
end
V(out) <+ th;
Seed has been defined as 1. I thought it would generate a random voltage at every negative edge of clk. But it does not do that!! Im running it using Cadence Spectre.
Any help?
Thanks!
Rajdeep