aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/pack.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gowin/pack.cc')
-rw-r--r--gowin/pack.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gowin/pack.cc b/gowin/pack.cc
index ac5e5ff4..213889f5 100644
--- a/gowin/pack.cc
+++ b/gowin/pack.cc
@@ -229,8 +229,10 @@ static void pack_io(Context *ctx)
iob = net_only_drives(ctx, ci->ports.at(id_O).net, is_nextpnr_iob, id_I);
break;
case ID_IOBUF:
+ iob = net_driven_by(ctx, ci->ports.at(id_IO).net, is_nextpnr_iob, id_O);
+ break;
case ID_TBUF:
- log_error("untested tristate stuff");
+ iob = net_only_drives(ctx, ci->ports.at(id_O).net, is_nextpnr_iob, id_I);
break;
default:
break;