mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-05-05 15:43:30 +00:00
Fix handling of parameters in JSON
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
@@ -348,7 +348,7 @@ void json_import_cell_attributes(Design *design, string &modname,
|
||||
|
||||
pId = param_node->data_dict_keys[param_id];
|
||||
if (param->type == 'N') {
|
||||
cell->params[pId] = std::to_string(param_node->data_number);;
|
||||
cell->params[pId] = std::to_string(param->data_number);;
|
||||
} else if (param->type == 'S')
|
||||
cell->params[pId] = param->data_string;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user