1
0
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:
David Shah
2018-06-07 20:39:53 +02:00
parent 9b87f132c8
commit 41b949832c
2 changed files with 6 additions and 2 deletions

View File

@@ -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