diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-18 14:06:37 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-18 14:06:37 +0200 |
commit | 8ee149f4fcb66cb61aa729263448c0935fb4d2ad (patch) | |
tree | 545282eae56973d52a88600d1cf82196970ecad7 /common/design.h | |
parent | ad18cdb08787c4ecc88edaec353a96f59135c62d (diff) | |
download | nextpnr-8ee149f4fcb66cb61aa729263448c0935fb4d2ad.tar.gz nextpnr-8ee149f4fcb66cb61aa729263448c0935fb4d2ad.tar.bz2 nextpnr-8ee149f4fcb66cb61aa729263448c0935fb4d2ad.zip |
Rename Design to Context, derive from Arch instead of instantiating
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/design.h')
-rw-r--r-- | common/design.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/common/design.h b/common/design.h index 13c66d4e..cae50904 100644 --- a/common/design.h +++ b/common/design.h @@ -70,17 +70,15 @@ struct CellInfo std::unordered_map<IdString, IdString> pins; }; -struct Design +struct Context : Arch { - struct Arch chip; + std::unordered_map<IdString, NetInfo *> nets; + std::unordered_map<IdString, CellInfo *> cells; - Design(ArchArgs args) : chip(args) + Context(ArchArgs args) : Arch(args) { // ... } - - std::unordered_map<IdString, NetInfo *> nets; - std::unordered_map<IdString, CellInfo *> cells; }; NEXTPNR_NAMESPACE_END |