gaom9
Full Member level 4
verilog white noise generator
Hi,
I want to design a truly random number generator, I want to simulate it in verilog-A.
So I want to get a white-noise source as the random number input.
But I write the verilog-A code as follow, but it can not work.
module noise (out);
output out;
electrical out;
parameter real r = 100K;
analog begin
V(out) <+ white_noise(4*`P_K*$temperature*r, "thermal");
end
endmodule
or
module noise (p, n);
inout p, n;
electrical p, n;
parameter real r = 100K;
analog begin
V(p, n ) <+ white_noise(4*`P_K*$temperature*r, "thermal");
end
endmodule
Both the two codes cannot work.
Why?
Thank you.
Best regards!
Hi,
I want to design a truly random number generator, I want to simulate it in verilog-A.
So I want to get a white-noise source as the random number input.
But I write the verilog-A code as follow, but it can not work.
module noise (out);
output out;
electrical out;
parameter real r = 100K;
analog begin
V(out) <+ white_noise(4*`P_K*$temperature*r, "thermal");
end
endmodule
or
module noise (p, n);
inout p, n;
electrical p, n;
parameter real r = 100K;
analog begin
V(p, n ) <+ white_noise(4*`P_K*$temperature*r, "thermal");
end
endmodule
Both the two codes cannot work.
Why?
Thank you.
Best regards!