load_primitives
Register built-in Xilinx or Yosys primitive models in the active session, or load a trusted local Python file defining load(db) for custom primitives.
Instructions
Register primitive models in the active session from either a built-in
name (xilinx or yosys) or one local Python file defining load(db).
Provide one source; name takes precedence when both are set. A custom file
executes unsandboxed Python in the server process, so only use trusted code.
Use load_liberty instead for standard-cell .lib files. Returns
{"ok": true}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Local Python file defining load(db); used only when name is omitted. | |
| name | No | Built-in primitive set to register; when set, file is ignored. |