extract_magic
Extract a SPICE netlist from layout using Magic batch mode (ext2spice lvs). Use a PDK tech file for device-accurate results; generic flow works without it.
Instructions
Extracts a SPICE netlist from layout with Magic batch mode (ext2spice lvs). Runs on generic technology: correct flow plumbing, but device-accurate extraction needs a PDK tech file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "extract_magic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| cell | No | Optional cell to select before extraction. | |
| source | Yes | Magic (.mag) or GDSII source layout. | |
| tech_file | No | Optional Magic technology file (required for device-accurate extraction). | |
| output_spice | No | Output SPICE path (default: <source>_extracted.spice). |