Jon Ho
02/27/2024, 10:59 PMStefan Schippers
02/27/2024, 11:56 PMsave @m.xm1.msky130_fd_pr__nfet_01v8[gm]
If you want to take the derivative dId/dVgs run a second DC sweep with reversed order:
dc vg 0 2 0.01 vd 0 2 0.2
so in these graphs the X axis will be Vgs
try attached example.
Both gm vs Vgs
and dId/dVgs vs Vgs
are plotted and are very similar. Why aren't these two the same? I don't know...Jon Ho
02/28/2024, 12:43 AMStefan Schippers
02/28/2024, 12:59 AMlet gm=deriv(i(vd1))
and this derivative calculated by ngspice is exactly identical to the dId/dVgs
calculated by xschem wave processor so there are no numerical errors.
I trust more the calculated gm because it uses "visible" currents and voltages at the external pins.
But I don't know why a transistor [gm]
parameter as returned by ngspice is not equal to dId/dVgs
.
@Tim Edwards ?Tim Edwards
02/28/2024, 2:34 AMStefan Schippers
02/28/2024, 10:08 AM../pdk/sky130A/libs.tech/ngspice
) and in this case the mos @m.xm1.msky130_fd_pr__nfet_01v8[gm]
parameter as returned by ngspice (bottom graph) is equal to the calculated derivative of Id vs Vgs (top graphs, calculated either by ngspice or by xschem directly on Id wave data). Curves show gm vs Vgs at increasing Drain voltages Vd (0, 0.2, 0.4, ..., 2.0) for a W=1, L=0.15 nfet_01v8.Stefan Schippers
02/28/2024, 10:08 AMStefan Schippers
02/28/2024, 10:25 AMTim Edwards
02/28/2024, 2:09 PMStefan Schippers
02/28/2024, 3:15 PMcommit 6d4d11780c40b20ee63cc98e645307a9bf2b2ab8 (HEAD -> master, tag: 1.0.470, origin/open_pdks-1.0, origin/master, origin/HEAD)
Author: Tim Edwards <tim@opencircuitdesign.com>
Date: Sun Feb 11 16:52:01 2024 -0500
One fix to the last commit, to correct the order of arguments in
the "device" line in the magic tech file for the new special nfet
and pfet devices. All parameter limit checks must appear before
the parameter declaration (because they are parsed backwards).
Probably magic should be modified to make the argument order
arbitrary.
If I need to update and re-test let me know.Tim Edwards
02/28/2024, 3:22 PMLinen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by