Processing Component¶
-
class
kicadtoNgspice.Processing.
PrcocessNetlist
¶ - This class include all the function required for pre-proccessing of netlist before converting to Ngspice Netlist.
-
convertICintoBasicBlocks
(schematicInfo, outputOption, modelList, plotText)¶ - Parses the schematicInfo and returns
- SchematicInfo
- Output Option
- Model List
- Unkown Model List
- Multiple Model List
- Plot text
- Parsing info is provided below
-
insertSpecialSourceParam
(schematicInfo, sourcelist)¶ - Insert Special source parameter
- As per the parameters passed create source list, start with v or i
- Then check for type whether ac, dc, sine, etc…
- Handle starting with h and f as well
-
preprocessNetlist
(kicadNetlist, param)¶ - Preprocess netlist (replace parameters)
- Separate infoline (first line) from the rest of netlist
-
readNetlist
(filename)¶ - Read the circuit file and return splitted lines
-
readParamInfo
(kicadNetlist)¶ - Read Parameter information and store it into dictionary
- kicadNetlist is the .cir file content
-
separateNetlistInfo
(netlist)¶ - Remove the options such as .end, .param, starting wtih “.” from the netlist file
- This is stored as option info, whereas rest is stored as schematicInfo
- Rest from the * Sheet Name: line stored as schematicInfo