AMS_ei
|
Hi,
I am trying to achieve electrical to real conversion using "absdelta". Here is my code:
//code starts here///////// module elec2real(signal); input signal; electrical signal;
real sig_vol;
initial begin sig_vol = 0; end always @(absdelta(V(signal), 0.01)) begin sig_vol = V(signal); end
endmodule
//Code ends here///////////////
The issue is that when V(signal) is 0V, sig_vol is driven to -4.44089e-16 as shown in the attached file.
Could anyone please explain me how can I resolve this issue?
Thank you.
Kind regards.
|