Description
Fill listed by names records with the same dictionary of field names to value mappings in a format {field: value, ...}.
Syntax
fill_values(<fields_dict>, [<record_names>])
Parameters
| Name | Description |
|---|---|
| <fields_dict> | Dictionary of field names to value mappings in a format {field: value, ...}. |
| [<record_names>] | List of record names. Default: All available record names |
Examples
# 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'])