fill_values(...) - fill_values(...) - 2026.1 日本語 - UG1781

Power Design Manager Python スクリプト ガイド (UG1781)

Document_ID
UG1781
Release_Date
2026-06-23
Version
2026.1 日本語

説明

指定した名前のレコードを、同一のフィールド名から値へのマッピングを持つディクショナリ {field: value, ...} で設定します。

構文

fill_values(<fields_dict>, [<record_names>])

パラメーター

名前 説明
<fields_dict> {field: value, ...} 形式のフィールド名から値へのマッピングを持つディクショナリです。
[<record_names>] レコード名のリスト。

デフォルト: 使用可能なすべてのレコード名

# Apply the same field values to all records in a resource
proj = open_project('my_design.pdm')
io_config = proj.get_block('io').get_resource('io_config')
io_config.fill_values({'toggle_rate': 0.125, 'data_rate': 'SDR'})
# Apply the same field values only to specific records
io_config.fill_values({'toggle_rate': 0.25}, ['io_inst1', 'io_inst2'])