summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-26 14:31:47 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-26 14:31:47 +0200
commitb03aec6e3212a387e3d255583476d472d16663f1 (patch)
treebb944d90d8d6f619a950760747b8340249e2df58
parent027819c7e8ba3b1f9c7eb4864fa221a4f3b01092 (diff)
Added RTLIL::Module::connect(const RTLIL::SigSig&)
-rw-r--r--kernel/rtlil.cc5
-rw-r--r--kernel/rtlil.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index 2378e95c..ce4ecea6 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -873,6 +873,11 @@ static bool fixup_ports_compare(const RTLIL::Wire *a, const RTLIL::Wire *b)
return a->port_id < b->port_id;
}
+void RTLIL::Module::connect(const RTLIL::SigSig &conn)
+{
+ connections_.push_back(conn);
+}
+
void RTLIL::Module::connect(const RTLIL::SigSpec &lhs, const RTLIL::SigSpec &rhs)
{
connections_.push_back(RTLIL::SigSig(lhs, rhs));
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index a2320873..4f91b720 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -288,6 +288,7 @@ struct RTLIL::Module
virtual void check();
virtual void optimize();
+ void connect(const RTLIL::SigSig &conn);
void connect(const RTLIL::SigSpec &lhs, const RTLIL::SigSpec &rhs);
void fixup_ports();