diff --git a/elaborate.cc b/elaborate.cc index 84799f46f..049b47fdf 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -901,11 +901,11 @@ NetNet*PGModule::resize_net_to_port_(Design*des, NetScope*scope, part_b? widb : wida, 0); if (part_b) { - connect(node->pin(0), tmp->pin(0)); - connect(node->pin(1), sig->pin(0)); - } else { connect(node->pin(0), sig->pin(0)); connect(node->pin(1), tmp->pin(0)); + } else { + connect(node->pin(0), tmp->pin(0)); + connect(node->pin(1), sig->pin(0)); } node->set_line(*this); diff --git a/tgt-stub/switches.c b/tgt-stub/switches.c index 4728c2ff5..5fa383ab4 100644 --- a/tgt-stub/switches.c +++ b/tgt-stub/switches.c @@ -53,7 +53,7 @@ void show_switch(ivl_switch_t net) has_enable = 1; break; case IVL_SW_TRAN_VP: - fprintf(out, " tran(PV wid=%u, part=%u, off=%u) %s", + fprintf(out, " tran(VP wid=%u, part=%u, off=%u) %s", ivl_switch_width(net), ivl_switch_part(net), ivl_switch_offset(net), name); break;