diff --git a/kernel/rtlil_bufnorm.cc b/kernel/rtlil_bufnorm.cc index aad4f5199..c43a3e9ca 100644 --- a/kernel/rtlil_bufnorm.cc +++ b/kernel/rtlil_bufnorm.cc @@ -402,10 +402,8 @@ void RTLIL::Module::bufNormalize() } } - // If a wire has one or more inout drivers and an unconditional driver, that's still a conflict for (auto driver : weakly_driven) - if (!driven.insert(driver).second) - conflicted.insert(driver); + driven.insert(driver); // This only leaves the drivers matching `driven`'s definition above for (auto driver : conflicted) diff --git a/tests/arch/ecp5/abc9_inout_pad_input.ys b/tests/arch/ecp5/abc9_inout_pad_input.ys new file mode 100644 index 000000000..04fc54d14 --- /dev/null +++ b/tests/arch/ecp5/abc9_inout_pad_input.ys @@ -0,0 +1,21 @@ +read_verilog <