Merge pull request #401 from thasti/fix_device_order

Reorder "Device Details" Sections
This commit is contained in:
Tim 'mithro' Ansell 2022-11-11 08:24:18 -08:00 committed by GitHub
commit 64e74cb5cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 769 additions and 732 deletions

View File

@ -2,28 +2,66 @@
import re
import os
import sys
from pathlib import Path
from pprint import pformat
RE_IMAGE = re.compile('.. (.*) image:: (.*)')
RE_INCLUDE = re.compile('.. include:: (.*)')
device_list = [
# 1.8V MOS
"nfet_01v8",
"nfet_01v8_lvt",
"pfet_01v8",
"pfet_01v8_lvt",
"pfet_01v8_hvt",
"cap_var",
# 3.3V MOS
"nfet_03v3_nvt",
# 5V MOS
"nfet_05v0_nvt",
"nfet_g5v0d10v5",
"pfet_g5v0d10v5",
"pfet_g5v0d16v0",
# 11V MOS
"nfet_g11v0d16v0",
# 20V MOS
"nfet_20v0",
"nfet_20v0_nvt",
"nfet_20v0_zvt",
"nfet_20v0_iso",
"pfet_20v0",
# ESD MOS
"esd_nfet",
# Diodes/Bipolar
"diodes",
"npn_05v0",
"pnp_05v0",
# Special active devices
"special_sram",
"special_sonosfet",
# Well/Diffusion/Poly/Metal Resistors
"res_generic",
"res_high",
"res_xhigh",
# Metal Capacitors
"cap_mim",
"cap_vpp",
]
print('Device Details')
print('==============')
print()
def r(m):
n = m.group(0)
while len(n) < 10:
n = '0'+n
return n
def k(s):
return re.sub('([0-9.V/]*)', r, str(s))
for fname in sorted(Path('.').rglob('index.rst'), key=k):
for device_name in device_list:
fname = os.path.join("device-details", device_name, "index.rst")
with open(fname) as f:
data = f.read()
@ -33,4 +71,3 @@ for fname in sorted(Path('.').rglob('index.rst'), key=k):
data = RE_IMAGE.sub(r'.. \1 image:: {}/\2'.format(dirname), data)
data = RE_INCLUDE.sub(r'.. include:: {}/\1'.format(dirname), data)
print(data)

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
MiM Capacitor
-------------
MiM capacitors
--------------
Spice Model Information
~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,5 +1,5 @@
Varactors
---------
1.8V accumulation-mode MOS varactors
------------------------------------
Spice Model Information
~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,4 +1,4 @@
NMOS ESD FET
ESD NMOS FET
------------
Spice Model Information

View File

@ -1,4 +1,4 @@
20V NMOS zero-VT FET
20V zero-VT NMOS FET
--------------------
Spice Model Information

View File

@ -1,5 +1,5 @@
Bipolar (NPN)
-------------
Bipolar NPN transistor
----------------------
Spice Model Information
~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,5 +1,5 @@
Bipolar (PNP)
-------------
Bipolar PNP transistor
----------------------
Spice Model Information
~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,4 +1,4 @@
Generic Resistors
Generic resistors
-----------------
Generic resistors are supported in the PDK but are not recommended for analog applications. Resistor values will be extracted from the layout as long as the resistor layer is utilized, for LVS against schematic elements.