aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/json/jsonparse.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-07 20:39:53 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-07 20:39:53 +0200
commit41b949832c0b5f02a7b345b1c8f14480d5f81a8a (patch)
tree9cc87b980fb0192910650180228728e47a20267a /frontend/json/jsonparse.cc
parent9b87f132c8f0ffa63357096313c92eef0bc5633f (diff)
downloadnextpnr-41b949832c0b5f02a7b345b1c8f14480d5f81a8a.tar.gz
nextpnr-41b949832c0b5f02a7b345b1c8f14480d5f81a8a.tar.bz2
nextpnr-41b949832c0b5f02a7b345b1c8f14480d5f81a8a.zip
Fix handling of parameters in JSON
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'frontend/json/jsonparse.cc')
-rw-r--r--frontend/json/jsonparse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc
index d3696909..fe6a17cb 100644
--- a/frontend/json/jsonparse.cc
+++ b/frontend/json/jsonparse.cc
@@ -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