Translation to and from Spice format
in SpiceInputGenImpl.mesa :
CreateConvData: PROC [inputStream, outputStream: IO.STREAM] RETURNS [convData: ConvData];
WriteSpiceDeck: PROC [cellType: Core.CellType, convData: ConvData];
two lower level ones to use in case one wants to generate a spice deck from custom data:
InitSpiceDeck: PROC [cellType: Core.CellType, convData: ConvData];
CloseSpiceDeck: PROC [convData: ConvData];
in SpiceOutputViewImpl.mesa :
DisplaySpiceListing: PROC [convData: ConvData];
Elements to Spice input line procs
Comment: PROC [convData: ConvData, comment: ROPE];
Resistor: PROC [convData: ConvData, n1, n2: FlatWire, value: REAL, tc1, tc2: REAL ← 0.0];
Capacitor: PROC [convData: ConvData, n1, n2: FlatWire, value: REAL, incond: REAL ← 0.0];
Inductor: PROC [convData: ConvData, n1, n2: FlatWire, value: REAL, incond: REAL ← 0.0];
CoupledInductors: PROC [convData: ConvData, n0, n1, n2, n3: FlatWire, l1, l2: REAL, k: REAL];
LosslessLine: PROC [convData: ConvData, n0, n1, n2, n3: FlatWire, z0: REAL, td: REAL];
Vccs: PROC [convData: ConvData, n0, n1, n2, n3: FlatWire, value: REAL];
Vcvs: PROC [convData: ConvData, n0, n1, n2, n3: FlatWire, value: REAL];
Cccs: PROC [convData: ConvData, n0, n1, n2, n3: FlatWire, value: REAL];
Ccvs: PROC [convData: ConvData, n0, n1, n2, n3: FlatWire, value: REAL];
Diode: PROC [convData: ConvData, n1, n2: FlatWire, model: ROPE, area: REAL];
BJT: PROC [convData: ConvData, c, b, e: FlatWire, model: ROPE, area: REAL];
VSource: PROC [convData: ConvData, n1, n2: FlatWire, dc: REAL ← 0.0];
ISource: PROC [convData: ConvData, n1, n2: FlatWire, ma: REAL ← 0.0];
PulseVS: PROC [convData: ConvData, n1, n2: FlatWire, v1, v2, td, tr, tf, pw, per: REAL ← 0.0];
MOSFet: PROC [convData: ConvData, gate, drain, source, bulk: FlatWire, model: ROPE, l, w: REAL];