diff options
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/json/jsonparse.cc | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc index a936bdaa..32ae0953 100644 --- a/frontend/json/jsonparse.cc +++ b/frontend/json/jsonparse.cc @@ -659,7 +659,8 @@ static void insert_iobuf(Context *ctx, NetInfo *net, PortType type,      std::copy(net->attrs.begin(), net->attrs.end(),                std::inserter(iobuf->attrs, iobuf->attrs.begin()));      if (type == PORT_IN) { -        log_info("processing input port %s\n", name.c_str()); +        if (ctx->verbose) +            log_info("processing input port %s\n", name.c_str());          iobuf->type = ctx->id("$nextpnr_ibuf");          iobuf->ports[ctx->id("O")] = PortInfo{ctx->id("O"), net, PORT_OUT};          // Special case: input, etc, directly drives inout @@ -671,7 +672,8 @@ static void insert_iobuf(Context *ctx, NetInfo *net, PortType type,          net->driver.port = ctx->id("O");          net->driver.cell = iobuf;      } else if (type == PORT_OUT) { -        log_info("processing output port %s\n", name.c_str()); +        if (ctx->verbose) +            log_info("processing output port %s\n", name.c_str());          iobuf->type = ctx->id("$nextpnr_obuf");          iobuf->ports[ctx->id("I")] = PortInfo{ctx->id("I"), net, PORT_IN};          PortRef ref; @@ -679,7 +681,8 @@ static void insert_iobuf(Context *ctx, NetInfo *net, PortType type,          ref.port = ctx->id("I");          net->users.push_back(ref);      } else if (type == PORT_INOUT) { -        log_info("processing inout port %s\n", name.c_str()); +        if (ctx->verbose) +            log_info("processing inout port %s\n", name.c_str());          iobuf->type = ctx->id("$nextpnr_iobuf");          iobuf->ports[ctx->id("I")] = PortInfo{ctx->id("I"), nullptr, PORT_IN};  | 
