<@U021BTRSZ5H> the `vcvs.sym` in xschem follows th...
# xschem
s
@User the
vcvs.sym
in xschem follows the exact spice definition for the linear voltage controlled voltage source. The pins on the left represent the input voltage nodes (Vi), the pins on the right will force a voltage (Vo), where
Vo = Vi  * value
. The '`value`' attribute in the xschem symbol represent the linear voltage gain of the vcvs.
p
Okay 👍
@User Getting an error with the simulation.
s
@User I tried your example and it works. Please provide your netlist.
p
@User Here's netlist and schematic
s
@User, i ran xschem with your schematic and Netlist->Simulation did the job. May be the results are not the ones you expect, but i got no errors whatsoever.
@User Even running ngspice directly on your netlist (i only had to change the .lib and .include paths to reflect my system install of open_pdks) ran fine.
p
Don't know how I am getting an error. I ran the simulation on my friend's machine and got the same error 😅.
v
@User I am getting the same error as @User while trying to do loopgain simulation
s
@User Try to remove the
{1-B}
and
{B}
parameters from the voltage sources and do two separate simulations, one with
1
and
0
and one with
0
and
1
set on the voltage sources. If it runs with no errors then this is a ngspice limitation. Let me know the result. Thank you! If you can send me your failing netlist i can try on my side.
v
@User here is my netlist
s
@User I just added a
.save all
before the .control/.endc block to save all currents and voltages, and corrected the
let T = ....
expression, there was a missing parenthesis. It ran fine here. corrected netlist attached. Do a diff with your old netlist so you can correct the xschem testbench. (do not change the .lib, i did since on my system open_pdks is installed in a different place).
v
@User I tried running the simulation using updated netlist yet i am facing the same error. @User also tried it on his machine but is facing same issue
s
@User @User what is the ngspice version you are using? my version (ngspice -v) shows version 36+, if the same netlist works for me and not on your system it's probably a version mismatch.