aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.cc11
-rw-r--r--generic/arch.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/generic/arch.cc b/generic/arch.cc
index 5617fa63..674f7af7 100644
--- a/generic/arch.cc
+++ b/generic/arch.cc
@@ -604,6 +604,17 @@ void Arch::assignArchInfo()
}
}
+void Arch::archInfoToAttributes()
+{
+ commonInfoToAttributes();
+}
+
+void Arch::attributesToArchInfo()
+{
+ attributesToCommonInfo();
+ assignArchInfo();
+}
+
bool Arch::cellsCompatible(const CellInfo **cells, int count) const
{
const NetInfo *clk = nullptr;
diff --git a/generic/arch.h b/generic/arch.h
index e9d3593c..f553c613 100644
--- a/generic/arch.h
+++ b/generic/arch.h
@@ -288,6 +288,8 @@ struct Arch : BaseCtx
// Internal usage
void assignArchInfo();
bool cellsCompatible(const CellInfo **cells, int count) const;
+ void archInfoToAttributes();
+ void attributesToArchInfo();
};
NEXTPNR_NAMESPACE_END