simongu89
Newbie level 4
Dear All,
I am learning how to use verilog-A to do simulation. I create a resistor by verilog-a:
the code is:
`include "constants.vams"
`include "disciplines.vams"
module resistor(p,n);
inout p,n;
electrical p,n;
parameter real r=1;
analog
V(p,n) <+ r*I(p,n);
endmodule
the schematic of my test bench is:
I followed the tutorial here:
**broken link removed**
the simulator I use is spectre, I also create a config file.
then when I simulate it in "analog environment", the simulation is successful but it seems there is no current flowing through the resistor.
What might be the problem?
Thanks for any suggestions!
I am learning how to use verilog-A to do simulation. I create a resistor by verilog-a:
the code is:
`include "constants.vams"
`include "disciplines.vams"
module resistor(p,n);
inout p,n;
electrical p,n;
parameter real r=1;
analog
V(p,n) <+ r*I(p,n);
endmodule
the schematic of my test bench is:
I followed the tutorial here:
**broken link removed**
the simulator I use is spectre, I also create a config file.
then when I simulate it in "analog environment", the simulation is successful but it seems there is no current flowing through the resistor.
What might be the problem?
Thanks for any suggestions!