ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
zlayout.component_db Namespace Reference

Classes

class  ComponentDatabase
class  ComponentSpec

Variables

 db = ComponentDatabase("eda_components.db")
 library = db.get_component_library()
 passive_components = db.search_components(category="passive")
 custom_id
 module_id
 comp = db.get_component(custom_id)

Detailed Description

EDA组件数据库系统(简化版)
使用SQLite存储组件参数,支持灵活的组件定义和用户自定义模块

Variable Documentation

◆ comp

zlayout.component_db.comp = db.get_component(custom_id)

Definition at line 324 of file component_db.py.

◆ custom_id

zlayout.component_db.custom_id
Initial value:
1= db.create_custom_component(
2 name="custom_op_amp",
3 parameters={
4 "gain": 100,
5 "bandwidth": 1e6,
6 "slew_rate": 1e6
7 },
8 electrical_params={
9 "supply_voltage": [3.3, 5.0],
10 "input_impedance": 1e12
11 },
12 description="自定义运算放大器"
13 )

Definition at line 297 of file component_db.py.

◆ db

zlayout.component_db.db = ComponentDatabase("eda_components.db")

Definition at line 281 of file component_db.py.

◆ library

zlayout.component_db.library = db.get_component_library()

Definition at line 285 of file component_db.py.

◆ module_id

zlayout.component_db.module_id
Initial value:
1= db.create_module(
2 name="amplifier_stage",
3 components=[custom_id],
4 connections=[{"from": "input", "to": "op_amp_in"}],
5 description="放大器级"
6 )

Definition at line 314 of file component_db.py.

◆ passive_components

zlayout.component_db.passive_components = db.search_components(category="passive")

Definition at line 291 of file component_db.py.