Vikram Srinivasan
Guest
|
Hi Andrew
The following is my test bench for the voltage follower.As you can see, I tried creating a branch named "follow" between vout and vin_n. I have not created any other instances or made any other connections. I am giving a 1V dc to vin_p and supplyvoltages to vspply_p and vspply_n...
I see 1V at vin_p and vin_n. But for vout, I see a spike from 0V to 5V which quickly stabilises to ~3.05V...
Is this branch connection valid for the feedback?I tried defining
wire vin_n,vout;
But this gave me an invalid declaration error.
`include "disciplines.vams" `timescale 10ps/1ps
module opampfollower(vout,vref,vin_p,vin_n,vspply_p,vspply_n);
inout vout,vref,vin_p,vin_n,vspply_p,vspply_n; electrical vref,vout,vin_p,vin_n,vspply_p,vspply_n; ground vref;
opamp opamp (vout,vref,vin_p,vin_n,vspply_p,vspply_n); branch(vout,vin_n) follow;
vsource #(.type("dc"),.dc(1)) vin1(vin_p,vref); vsource #(.type("dc"),.dc(2.5))vin2(vspply_p,vref); vsource #(.type("dc"),.dc(-2.5))vin3(vspply_n,vref);
endmodule
Unfortunately, I am using SimVision and I'm unable to compare my simulation to the Spectre output(although I understood what your pasted code described).
Thank you
Vikram
|