blob: 658fd4ae6a09e1f42d9a0fe1278f1f05f9ebd6a9 [file] [log] [blame]
v {xschem version=3.1.0 file_version=1.2
* Copyright 2021 Stefan Frederik Schippers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}
G {}
K {type=pmos
format="@spiceprefix@name @pinlist @body sky130_fd_pr__@model L=@L W=@W m=@mult"
template="name=M1
L=0.5
W=30
body=VDD
mult=1
model=pfet_20v0
spiceprefix=X
"}
V {}
S {}
E {}
L 4 20 -30 20 -17.5 {}
L 4 20 17.5 20 30 {}
L 4 8.75 17.5 20 17.5 {}
L 4 13.75 -17.5 20 -17.5 {}
L 4 8.75 -22.5 8.75 22.5 {}
L 4 -20 0 -12.5 0 {}
L 4 2.5 8.75 8.75 8.75 {}
L 4 2.5 15 8.75 15 {}
L 4 2.5 13.75 3.75 15 {}
L 4 7.5 15 8.75 13.75 {}
L 4 7.5 8.75 8.75 10 {}
L 4 2.5 10 3.75 8.75 {}
L 4 7.5 10 7.8125 9.6875 {}
L 4 3.4375 14.0625 3.75 13.75 {}
L 4 3.4375 9.6875 3.75 10 {}
L 4 7.5 13.75 7.8125 14.0625 {}
L 4 2.5 5 8.75 5 {}
B 4 4.375 10.625 6.875 13.125 {}
B 5 17.5 27.5 22.5 32.5 {name=D dir=inout}
B 5 -22.5 -2.5 -17.5 2.5 {name=G dir=in}
B 5 17.5 -32.5 22.5 -27.5 {name=S dir=inout}
A 4 -7.5 0 5 180 360 {}
P 4 4 13.75 -20 8.75 -17.5 13.75 -15 13.75 -20 {fill=true}
P 4 5 -2.5 15 -2.5 -15 2.5 -15 2.5 15 -2.5 15 {}
T {@name} 5 -30 0 1 0.2 0.2 {}
T {D} 22.5 17.5 0 0 0.15 0.15 {layer=7}
T {S} 22.5 -17.5 2 1 0.15 0.15 {layer=7}
T {G} -11.875 -10 0 1 0.15 0.15 {layer=7}
T {@model} 30 -8.75 2 1 0.2 0.2 {}
T {@mult x @W / @L} 31.25 11.25 0 0 0.2 0.2 { layer=13}
T {tcleval(gm=[ngspice::get_node [subst -nocommand \{\\@m.$\{path\}@spiceprefix@name\\.msky130_fd_pr__@model\\[gm]\}]] )} 32.5 -8.75 0 0 0.15 0.15 {layer=15
hide=true}
T {tcleval(id=[ngspice::get_node [subst -nocommand \{i(\\@m.$\{path\}@spiceprefix@name\\.msky130_fd_pr__@model\\[id])\}]] )} 32.5 -30 0 0 0.15 0.15 {layer=15
hide=true}