ParkedTom
01/20/2021, 2:48 PMscheduler(): xschem set_netlist_dir: argv[2] = /home/tep/.xschem/simulations
Stefan Schippers
01/20/2021, 10:47 PM/home/tep/.xschem/simulations
and try to see if there is a file named <your_circuit>.spiceStefan Schippers
01/20/2021, 10:49 PMParkedTom
01/22/2021, 3:00 PMStefan Schippers
01/22/2021, 3:07 PMParkedTom
01/22/2021, 4:31 PMStefan Schippers
01/22/2021, 4:44 PMStefan Schippers
01/22/2021, 4:44 PMTom
01/23/2021, 8:35 PMpnp_05v5_W0p68L0p68
model rather than the pnp_05v5_W3p40L3p40
for which there is a magic cell?Stefan Schippers
01/23/2021, 9:55 PMsky130.lib.spice
) the only model that gets included for pnp is :
.include "../cells/pnp_05v5/sky130_fd_pr__pnp_05v5_W0p68L0p68.model.spice"
This means that the 3.4x3.4 can not be simulated out of the box (it might be by manually including the model which does exist). Thats not a big problem though. If you need to reference the other bigger one just change the model
attribute at instance level.
May be @User can suggest what is the best default, but again its a minor issue. You can always override default models as explained.Tom
01/23/2021, 10:04 PMTom
01/23/2021, 11:20 PMcode
component to include a file but the path is above a certain length, it puts the .inc
one one line, and then + <long path to file name>
on the next line which the simulator complains about. Have you noticed this before/Is there a way to fix this which doesn't involve creating separate include files with shorter paths or editing the netlist?Stefan Schippers
01/24/2021, 3:27 AM.inc
(an alias of .include
). I have now added also .inc. Fix for you is:
1. update xschem, or...
2. ...use .include
Thank you for reporting this bug.Tom
01/24/2021, 4:24 AMpromach
01/24/2021, 7:39 AMM1
mosfet has 4 terminals, but ngspice only shows 3 terminals. And there is no gate in ngspice output for xm1
? I suppose dbody
means drain terminal ? what about gate terminal ?promach
01/24/2021, 8:07 AMStefan Schippers
01/24/2021, 10:48 AM.options savecurrents
.control
save all
op
ac dec 10 1000 1000G
write <your_circuit_name>.raw
.endc
then you will have your gate currents:
8 i(@m.xm1.msky130_fd_pr__nfet_01v8_lvt[ib]) current dims=0
9 i(@m.xm1.msky130_fd_pr__nfet_01v8_lvt[id]) current
10 i(@m.xm1.msky130_fd_pr__nfet_01v8_lvt[ig]) current dims=0
11 i(@m.xm1.msky130_fd_pr__nfet_01v8_lvt[is]) current dims=0
promach
01/24/2021, 11:08 AM$terminal -e 'ngspice -i "$N" -a || sh'
<-- what exactly is $terminal
?Stefan Schippers
01/24/2021, 11:09 AMpromach
01/24/2021, 11:09 AMpromach
01/24/2021, 11:10 AMpromach
01/24/2021, 11:10 AMStefan Schippers
01/24/2021, 11:11 AMStefan Schippers
01/24/2021, 11:11 AMStefan Schippers
01/24/2021, 11:12 AMpromach
01/24/2021, 11:15 AMpromach
01/24/2021, 11:16 AMStefan Schippers
01/24/2021, 11:24 AM.ac dec .....
but as ac dec ...
inside a .control / .endc
blockStefan Schippers
01/24/2021, 11:25 AMpromach
01/24/2021, 11:30 AM