Parametric standard cell in Xschem
Ming Sun / November 07, 2022
3 min read • ––– views
Cell name: SIM_nand2
PDK: Skywater130
Schematic capture: Xschem
Simulator: Ngspice
Modify the nand2 schematic
- Let us modify the
nand2
schematic. Make the channel width, length and multiplier as generic parameters as shown in Fig. 1.
Fig. 1Set channel width, length and multiplier to be parameters
- Do the same for NMOS
Mn1
andMn0
. Set channnel width to beW_N
, channel length to beL_N
and multiplier to bem
.
Modify symbol
- Next, we need to modify the
nand2
symbol as shown in Fig. 2.
Fig. 2Modified symbol for nand2
For the symbol properties, please use the following contents:
symbol_properties
type=subcircuit
format="@name @pinlist @symname m=@m L_P=@L_P L_N=@L_N"
template="name=x1 m=1
+ W_N=1 L_N=0.15 W_P=2 L_P=0.15 "
New test bench
- Create a new test bench as shown in Fig. 3. Let us use the
nand2
gate to drive a 10pF cap. Onenand2
gate has all the default dimensions, while anothernand2
gate has multiplierm
equal to 10.
Fig. 3SIM_nand2 test bench
From Fig. 3, we can clearly tell that the nand2
gate with m euqals to 1 has weaker driving capability compared with the one of m=10
.
References and materials
[2] Xschem - 101