Crate spefparse

Source
Expand description

Standard parasitics exchange format (SPEF) parser.

§How to use

See SPEF::parse_str.

We also support transforming a SPEF object to a SPEF source code, by using std::fmt::Display.

§Misc

This parser obeys the IEEE 1481-1998 standard, with some notable exceptions (to be addressed in future work):

  1. prefix bus delimiter :, . unsupported (because they interfere with hchar.), and empty suffix bus delimiter is unsupported yet.
  2. sensitivity is unsupported in cap and res defs. and slew threshold is unsupported in conn attr.
  3. Pi model is unsupported.

Structs§

HierName
Hierarchical name.
SPEF
SPEF main struct. It contains headers, top ports, and nets.
SPEFConnAttr
A piece of connectivity information in SPEF.
SPEFHeader
SPEF header (from *SPEF to *L_UNIT).
SPEFHierPortPinRef
Port or pin reference.
SPEFNet
A net in SPEF.
SPEFNetCap
A capacitance entry of a net.
SPEFNetConn
A connection entry of a net.
SPEFNetRes
A resistance entry of a net.
SPEFPort
A port in SPEF.

Enums§

Direction
Direction in SPEF.
ParValue
It seems this means min, nominal, and max.