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

Classes

class  ComponentCategory
class  ComponentFactory
class  ComponentInterface
class  ComponentJSONEncoder
class  ComponentManager
class  ComponentType
class  DatabaseComponent
class  LogicComponent

Functions

ComponentManager create_component_manager (str db_path="components.db")
ComponentInterface create_resistor (str name, float resistance, float tolerance=0.05)
ComponentInterface create_capacitor (str name, float capacitance, float voltage_rating=50.0)
ComponentInterface create_flipflop (str name, str ff_type="D")
ComponentInterface create_counter (str name, int width=8, bool count_up=True)

Detailed Description

EDA组件接口 - 统一的组件管理接口
提供数据库存储组件和类定义逻辑电路的统一访问接口

Function Documentation

◆ create_capacitor()

ComponentInterface zlayout.component_interface.create_capacitor ( str name,
float capacitance,
float voltage_rating = 50.0 )
创建电容器

Definition at line 345 of file component_interface.py.

◆ create_component_manager()

ComponentManager zlayout.component_interface.create_component_manager ( str db_path = "components.db")
创建组件管理器

Definition at line 331 of file component_interface.py.

◆ create_counter()

ComponentInterface zlayout.component_interface.create_counter ( str name,
int width = 8,
bool count_up = True )
创建计数器

Definition at line 360 of file component_interface.py.

◆ create_flipflop()

ComponentInterface zlayout.component_interface.create_flipflop ( str name,
str ff_type = "D" )
创建触发器

Definition at line 355 of file component_interface.py.

◆ create_resistor()

ComponentInterface zlayout.component_interface.create_resistor ( str name,
float resistance,
float tolerance = 0.05 )
创建电阻器

Definition at line 335 of file component_interface.py.