diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-07 11:48:15 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-07 11:48:15 +0200 |
commit | 1093d7e1228272ca73114bbc4415c48d6cba76ed (patch) | |
tree | 13591f77267f0e77fff83593959c0d805c76b4e1 /generic | |
parent | 3ae50f85b15437b92b0ab3e6e9c243ea0556fdfc (diff) | |
download | nextpnr-1093d7e1228272ca73114bbc4415c48d6cba76ed.tar.gz nextpnr-1093d7e1228272ca73114bbc4415c48d6cba76ed.tar.bz2 nextpnr-1093d7e1228272ca73114bbc4415c48d6cba76ed.zip |
WIP saving/loading attributes
Diffstat (limited to 'generic')
-rw-r--r-- | generic/arch.cc | 11 | ||||
-rw-r--r-- | generic/arch.h | 2 |
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 |