Hi,
After some testing, I can use a logic gate to drive a resistor with verilog-AMS. When I try to drive a logic gate with a sine behavior wave code:
Code:`include "disciplines.vams"
`include "constants.vams"
module sinVarFreq(p, n);
inout p, n;
electrical p, n;
parameter real freq = 1.0e2;
parameter real coeff = 1.0;
real tempr;
analog begin
V(p,n) <+ 15.0*sin(`M_TWO_PI * freq * (sin(`M_TWO_PI * coeff * $abstime) + 1.0) * $abstime);
end
endmodule
It looks like the logic input seen as a hiz in the picture:
I have a doubt about it on the behavior sine wave unit. Although it is larger than 10, whether it is in Volt? In this EDA tool, I have set the interface model:
Code:.model itf y level=itf delay=1n vin1x=2.4 vinx0=2.4 vin0x=2.6 vinx1=2.6
What is wrong will result in such a problem (logic does not react to a varying analog input signal?
Thanks,