diff options
author | David Shah <davey1576@gmail.com> | 2018-06-13 10:50:05 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-13 10:50:05 +0200 |
commit | a76f5c5678980c8b2e958252a68ba03676d63229 (patch) | |
tree | a9f32a39a91164b36ca55d567baf177bbaece1cc /frontend/json/jsonparse.cc | |
parent | ddf549b117987c1e52412b58531c48a6050b51d1 (diff) | |
download | nextpnr-a76f5c5678980c8b2e958252a68ba03676d63229.tar.gz nextpnr-a76f5c5678980c8b2e958252a68ba03676d63229.tar.bz2 nextpnr-a76f5c5678980c8b2e958252a68ba03676d63229.zip |
Remove IO buffers when fed by SB_IO
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'frontend/json/jsonparse.cc')
-rw-r--r-- | frontend/json/jsonparse.cc | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc index df3a298e..79ee0a4d 100644 --- a/frontend/json/jsonparse.cc +++ b/frontend/json/jsonparse.cc @@ -693,12 +693,16 @@ static void insert_iobuf(Design *design, NetInfo *net, PortType type, design->cells[iobuf->name] = iobuf; } -void json_import_toplevel_port(Design *design, const string &modname, const string& portname, JsonNode *node) { +void json_import_toplevel_port(Design *design, const string &modname, + const string &portname, JsonNode *node) +{ JsonNode *dir_node = node->data_dict.at("direction"); JsonNode *nets_node = node->data_dict.at("bits"); - json_import_ports(design, modname, "Top Level IO", portname, dir_node, nets_node, [design](PortType type, const std::string &name, NetInfo *net){ - insert_iobuf(design, net, type, name); - }); + json_import_ports( + design, modname, "Top Level IO", portname, dir_node, nets_node, + [design](PortType type, const std::string &name, NetInfo *net) { + insert_iobuf(design, net, type, name); + }); } void json_import(Design *design, string modname, JsonNode *node) @@ -738,7 +742,9 @@ void json_import(Design *design, string modname, JsonNode *node) here = ports_parent->data_dict.at( ports_parent->data_dict_keys[portid]); - json_import_toplevel_port(design, modname, ports_parent->data_dict_keys[portid], here); + json_import_toplevel_port(design, modname, + ports_parent->data_dict_keys[portid], + here); } } check_all_nets_driven(design); |