From 7ac9dc7f6eab40b3853583848933c4a8a94df9c9 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 26 Jul 2014 14:38:33 +0200 Subject: [PATCH] Added RTLIL::Module::connections() --- kernel/rtlil.cc | 5 +++++ kernel/rtlil.h | 1 + 2 files changed, 6 insertions(+) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index ce4ecea6f..1638682c1 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -883,6 +883,11 @@ void RTLIL::Module::connect(const RTLIL::SigSpec &lhs, const RTLIL::SigSpec &rhs connections_.push_back(RTLIL::SigSig(lhs, rhs)); } +const std::vector &RTLIL::Module::connections() +{ + return connections_; +} + void RTLIL::Module::fixup_ports() { std::vector all_ports; diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 4f91b720d..1775975d5 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -290,6 +290,7 @@ struct RTLIL::Module void connect(const RTLIL::SigSig &conn); void connect(const RTLIL::SigSpec &lhs, const RTLIL::SigSpec &rhs); + const std::vector &connections(); void fixup_ports(); template void rewrite_sigspecs(T functor); -- 2.30.2