Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to add a white-noise source to the circuit in verilog-A

Status
Not open for further replies.

gaom9

Full Member level 4
Joined
Oct 8, 2007
Messages
228
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,298
Location
China
Activity points
3,294
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!
 

adding white noise electric circuit

Can anyone help me?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top