The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> Getting AC voltages in VerilogA or VerilogAMS https://designers-guide.org/forum/YaBB.pl?num=1550772869 Message started by DrDave57 on Feb 21st, 2019, 10:14am |
Title: Getting AC voltages in VerilogA or VerilogAMS Post by DrDave57 on Feb 21st, 2019, 10:14am I am creating a module to save the AC voltage from a simulation. I used this code in my AC analysis and it reports the DC voltage instead of the AC. I need to get magnitude and phase or the real and imaginary parts. Can someone help me with this? if (analysis("ac")) begin $display("freq = %4.2f. v1 = %4.2f, v2 = %4.2f", $freq, abs(V(v1)), V(v2)); end Thanks |
Title: Re: Getting AC voltages in VerilogA or VerilogAMS Post by Geoffrey_Coram on Feb 21st, 2019, 1:01pm The language does not support getting the ac voltage. |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |