EXT2SIM(1)
β¨ EXT2SIM β¨
okay bestie, gather round, because this one is literally the glow-up machine for your circuit files π It's ext2sim, a General Commands Manual page, and it takes your hierarchical ext(5) extracted-circuit files and turns them into flat sim(5) files. No cap. Let's go π¦
πΈ SYNOPSIS πΈ
ext2sim [ -a aliasfile ] [ -l labelsfile ] [ -o simfile ] [ -A ] [ -B ]
[ -F ] [ -L ] [ -t ] [ extcheck-options ] [ -y num ] [ -f mit|lbl|su ] [
-J hier|flat ] [ -j device:sdRclass[/subRclass]/defaultSubstrate ] root
π DESCRIPTION π
So here's the tea, bestie. ext2sim takes an extracted circuit in the hierarchical ext(5) representation (the one Magic makes for you π) and converts it to the flat sim(5) representation that, like, a ton of simulation tools need. Glow-down, honestly.
The root of the tree you're extracting is the file root.ext, and it plus every file it references gets recursively flattened. Then you get a single, flat representation of the circuit, and it lands in three places:
root.simβ the flat circuit itself β¨root.alβ a list of node aliasesroot.nodesβ a list of the locations of all nodenames in CIF format, suitable for plotting
That root.sim file is ready to vibe with programs like crystal(1), esim(1), or sim2spice(1). Iconic.
The following options are recognized:
π OPTIONS π
-a aliasfileβ instead of leaving node aliases in the fileroot.al, leave them inaliasfile. Moving house, but for aliases.-l labelfileβ instead of leaving a CIF file with the locations of all node names in the fileroot.nodes, leave it inlabelfile. Same energy.-o outfileβ instead of leaving output in the fileroot.sim, leave it inoutfile. Yes, you can name it whatever, go off π-Aβ don't produce the aliases file. At all. It's giving minimalism.-Bβ don't output transistor or node attributes in the.simfile. This option will also disable the output of information such as the area and perimeter of source and drain diffusion and the fet substrate. For compatibitlity reasons the latest version ofext2simoutputs this information as node attibutes. This option is necessary when preparing input for programs that don't know about attributes, such assim2spice(1)(which is actually made obsolete byext2spice(1), anyway), orrsim(1). (Yes bestie, those typos are in the original, I am not touching them, they're part of the lore π)-Fβ don't output nodes that aren't connected to fets (floating nodes). Bye to the unconnected girlies π-Lβ don't produce the label file.-tcharβ trim characters from node names when writing the output file.charshould be either#or!. The option may be used twice if both characters are desired. Double it up, it's fine π-f MIT|LBL|SUβ select the output format:MITis the traditionalsim(5)format.LBLis a variant of it understood bygemini(1)which includes the substrate connection as a fourth terminal before length and width.SUis the internal Stanford format which is described also insim(5)and includes areas and perimeters of fet sources, drains and substrates.
-y numβ select the precision for outputing capacitors. The default is1which means that the capacitors will be printed to a precision of.1fF. Slay, that's precise π-J hier|flatβ select the source/drain area and perimeter extraction algorithm. Let's break it down:- If
hieris selected, then the areas and perimeters are extracted only within each subcell. For each fet in a subcell, the area and perimeter of its source and drain within this subcell are output. If two or more fets share a source/drain node, then the total area and perimeter will be output in only one of them and the other will have0. - If
flatis selected, the same rules apply only that the scope of search for area and perimeter is the whole netlist. In generalflat(which is the default) will give accurate results (it will take into account shared sources/drains) buthieris provided for backwards compatibility with version 6.4.5. - On top of this selection you can individually control how a terminal of a specific fet will be extracted if you put a source/drain attribute.
ext:aphmakes the extraction for that specific terminal hierarchical andext:apfmakes the extraction flat (see the magic tutorial about attaching attribute labels). Additionaly to ease extraction of bipolar transistors the gate attributeext:apsforces the output of the the substrate area and perimeter for a specific fet (in flat mode only).
- If
-j device:sdRclass[/subRclass]/defaultSubstrateβ givesext2siminformation about the source/drain resistance class of the fet typedevice. Makesdeviceto havesdRclasssource drain resistance class,subRclasssubstrate (well) resistance class and the node nameddefaultSubstrateas its default substrate. The defaults arenfet:0/Gndandpfet:1/6/Vddwhich correspond to the MOSIS technology file but things might vary in your site. Ask your local cad administrator. (fr fr, they know things π)
The way the extraction of node area and perimeter works in magic, the total area and perimeter of the source/drain junction is summed up on a single node. That is why all the junction areas and perimeters are summed up on a single node (this should not affect simulation results however).
β οΈ Special care must be taken when the substrate of a fet is tied to a node other than the default substrate (eg in a bootstraping charge pump). To get the correct substrate info in these cases the fet(s) with separate wells should be in their own separate subcell with ext:aph attributes attached to their sensitive terminals (also all the transistors which share sensistive terminals with these should be in another subcell with the same attributes).
In addition, all of the options of extcheck(1) are accepted. Yes, all of them. The whole buffet π
π SCALING AND UNITS π
If all of the .ext files in the tree read by ext2sim have the same geometrical scale (specified in the scale line in each .ext file), this scale is reflected through to the output, resulting in substantially smaller .sim files. Cute and efficient β¨
Otherwise, the geometrical unit in the output .sim file is a centimicron.
Resistance and capacitance are always output in ohms and femptofarads, respectively. Non-negotiable π
π¦ SEE ALSO π¦
extcheck(1), ext2dlys(1), ext2spice(1), magic(1), rsim(1), ext(5), sim(5)
π AUTHOR π
Walter Scott additions/fixes by Stefanos Sidiropoulos.
π BUGS π
Transistor gate capacitance is typically not included in node capacitances, as most analysis tools compute the gate capacitance directly from the gate area. The -c flag therefore provides a limit only on non-gate capacitance.
The areas and perimeters of fet sources and drains work only with the simple extraction algorith and not with the extresis flow. So you have to model them as linear capacitors (create a special extraction style) if you want to extract parasitic resistances with extresis. Not me finding out the hard way π
This page came to you from the 4th Berkeley Distribution, dated like the legend it is, and it's the EXT2SIM(1) manual page itself. Mwah. Stay flat, stay slayed πβ¨π«Ά
π¦ where this page comes from
- fedora 43: magic 8.3.552-1.fc43 Β· HPND-UC-export-US AND TCL AND HPND
- fedora 43: magic 8.3.651-1.fc43 Β· HPND-UC-export-US AND TCL AND HPND
- fedora 44: magic 8.3.623-1.fc44 Β· HPND-UC-export-US AND TCL AND HPND
- fedora 44: magic 8.3.684-1.fc44
- fedora 44: magic 8.3.685-1.fc44 Β· HPND-UC-export-US AND TCL AND HPND
- nixos 26.05: magic-vlsi 8.3.629
- nixpkgs unstable: magic-vlsi 8.3.689
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms