Sumit Adhikari
|
You are absolutely correct, I also thought that way. I am in need to solving current and voltage equations as the way I wish and add them with some other currents/voltages. I want to study transport equations modified quantum mechanical effects in DSM technology, for this Verilog-AMS is good, as I have good controllability. For a warm up I took SHM equation (ddt(ddt(V(p,n))) <+ -k * V(p,n), which should give me sinusoidal out put like a0*sin(wt). Following is the code :
`include "discipline.vams" `include "constants.vams"
module oscillations_ode (p, n);
inout p ; inout n ; electrical p ; electrical n ; electrical d_1 ; electrical d_2 ;
parameter real k = 10000.0 ;
real reff;
analog begin//{ //@(initial_step) @(initial_step("dc", "ac", "tran", "xf")) begin//{ V(p,n) <+ 1.0 ; V(d_1,n) <+ 0.0 ; V(d_2,n) <+ 0.0 ; end//}
V(d_1,n) <+ ddt(V(p,n)) ; V(d_2,n) <+ ddt(V(d_1,n)) ; V(d_2,n) <+ -k*V(p,n) ;
end //}
endmodule
output of this block (p) is driving a small parallel load of a resistor and a capacitor.
The solver is running, but I am always getting 0 output.
Do not understand why >:(
Regards, Sumit
|