The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> Verilog A model for white noise source https://designers-guide.org/forum/YaBB.pl?num=1264401024 Message started by Mayank on Jan 24th, 2010, 10:30pm |
Title: Verilog A model for white noise source Post by Mayank on Jan 24th, 2010, 10:30pm 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:
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. |
Title: Re: Verilog A model for white noise source Post by pancho_hideboo on Jan 24th, 2010, 10:37pm Mayank wrote on Jan 24th, 2010, 10:30pm:
It has to be : V(p, n) <+ white_noise(4*`P_K*T*R, "thermal"); |
Title: Re: Verilog A model for white noise source Post by Geoffrey_Coram on Jan 25th, 2010, 6:49am Pancho is right about the ' vs ` However, it looks to me that the compiler is actually complaining before that point, perhaps because there is no "analog" before the contribution. analog V(p, n) <+ white_noise(4*`P_K*T*R, "thermal"); or analog begin V(p, n) <+ white_noise(4*`P_K*T*R, "thermal"); end (you'll need begin/end if you have more than one statement in the analog block) |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |