Hi,
I am new to verilogA but am trying to write a verilogA model for white noise source...It isn't compiling...
My Code :---
Code:`include "constants.vams"
`include "disciplines.vams"
module white_noise_source(p, n);
inout p;
inout n;
electrical p;
electrical n;
parameter real T = 200;
parameter real R = 10e3;
parameter real k = 1.38e-23;
V(p,n) <+ white_noise(4*'P_K*T*R,"thermal");
endmodule
The Compilation error is :--
Error found by spectre during AHDL compile.
ERROR (VACOMP-2259): "V<<--? (p,n) <+ white_noise(4*'P_K*T*R,"thermal");"
"/work/rf/white_noise_source/veriloga/veriloga.va", line
16: syntax error.
ERROR (VACOMP-1814): Maximum allowable errors exceeded. Exiting AHDL
compilation....
Could somebody pls explain this / correct this error ?? Or if somebody has already built a white noise source model...could you post it pls. ??
--
mayank.