Leonardo Gomes
04/16/2022, 9:52 PMJordan
04/16/2022, 10:57 PMLeonardo Gomes
04/16/2022, 11:00 PMLeonardo Gomes
04/17/2022, 12:24 AMArman Avetisyan
04/17/2022, 7:52 AMLeonardo Gomes
04/17/2022, 2:58 PMMitch Bailey
04/17/2022, 4:45 PMMxx D G S B model parameters
As you mentioned, for a mos varactor, the 'source and drain' are the same node, but the extractor splits that into 2 connections to a normal 4 terminal mos device. magic gives a warning when this happens. Happens with the decap cells.
Extracting sky130_fd_sc_hd__decap_4 into sky130_fd_sc_hd__decap_4.ext:
sky130_fd_sc_hd__decap_4: 2 warnings
Leonardo Gomes
04/17/2022, 4:56 PMMitch Bailey
04/17/2022, 5:39 PMLeonardo Gomes
04/17/2022, 5:46 PMMitch Bailey
04/17/2022, 10:41 PMsky130_fd_pr__cap_var_lvt
, sky130_fd_pr__cap_var_hvt
, or sky130_fd_pr__cap_var
?Leonardo Gomes
04/17/2022, 11:05 PMMitch Bailey
04/17/2022, 11:08 PMTim Edwards
04/18/2022, 1:01 PMcap_var
varactor devices as three-terminal subcircuits, per the model in the file sky130_fd_pr__cap_var_lvt.model.spice
. Source and drain are always tied together in a varactor, so those collapse to one pin. Since the device is modeled in a subcircuit and not an 'M' device in SPICE, the subcircuit just declares the three independent nodes (the model is actually a SPICE 'C' device with a complicated expression for the capacitance value).Tim Edwards
04/18/2022, 1:04 PMcap_var
devices in magic is wrong---it specifies the substrate node as the nwell under the device, which as you noted is connected to the source and drain in an n-varactor. I will need to check that the solution is as simple as replacing nwell
in the tech file with pwell,space/w
for those devices, to move the substrate pin connection from the nwell to the substrate below it.Tim Edwards
04/18/2022, 2:09 PMLeonardo Gomes
04/18/2022, 2:20 PMLeonardo Gomes
04/18/2022, 8:38 PMMitch Bailey
04/18/2022, 9:59 PM