EMCRuleCheckerSettings#

class pyedb.misc.siw_feature_config.emc_rule_checker_settings.EMCRuleCheckerSettings#

Manages EMI scanner settings.

Overview#

read_xml

Read settings from a json file.

write_xml

Write settings to a file in xml format.

write_json

Write settings to a file in json format.

read_json

Read settings from a json file.

add_net

Assign tags to a net.

add_component

Assign tags to a component.

Import detail#

from pyedb.misc.siw_feature_config.emc_rule_checker_settings import EMCRuleCheckerSettings

Attribute detail#

EMCRuleCheckerSettings.version = '1.0'#
EMCRuleCheckerSettings.encoding = 'UTF-8'#
EMCRuleCheckerSettings.standalone = 'no'#
EMCRuleCheckerSettings.tag_library#
EMCRuleCheckerSettings.net_tags#
EMCRuleCheckerSettings.component_tags#

Method detail#

EMCRuleCheckerSettings.read_xml(fpath)#

Read settings from a json file.

Parameters:
fpath: str

Path to file.

EMCRuleCheckerSettings.write_xml(fpath)#

Write settings to a file in xml format.

Parameters:
fpath: str, Path

Path to file.

EMCRuleCheckerSettings.write_json(fpath)#

Write settings to a file in json format.

Parameters:
fpath: str

Path to file.

EMCRuleCheckerSettings.read_json(fpath)#

Read settings from a json file.

Parameters:
fpath: str

Path to file.

EMCRuleCheckerSettings.add_net(name, is_bus=False, is_clock=False, is_critical=False, net_type='Single-Ended', diff_mate_name='')#

Assign tags to a net.

Parameters:
is_bus: str, int

Whether the net is a bus.

is_clock: str, int

Whether the net is a clock.

is_critical: str

Whether the net is critical.

name: str

Name of the net.

net_type: str

Type of the net.

diff_mate_name: str, optional

differential mate name.

EMCRuleCheckerSettings.add_component(comp_name, comp_value, device_name, is_clock_driver, is_high_speed, is_ic, is_oscillator, x_loc, y_loc, cap_type=None)#

Assign tags to a component.

Parameters:
comp_name: str

Name of the component.

comp_value: str

Value of the component.

device_name: str

Name of the device.

is_clock_driver: str

Whether the component is a clock driver.

is_high_speed: str

Whether the component is a high speed.

is_ic: str

Whether the component is a IC.

is_oscillator: str

Whether the component is an oscillator.

x_loc: str

X coordinate.

y_loc: str

Y coordinate

cap_type: str, optional

Type of the capacitor. The default is "None". Options are "Decoupling", "Stitching".