diff options
author | D. Shah <dave@ds0.me> | 2021-02-05 11:49:31 +0000 |
---|---|---|
committer | D. Shah <dave@ds0.me> | 2021-02-05 19:19:17 +0000 |
commit | f5d2e245e172e2481639dedc3f9b6870f069742a (patch) | |
tree | b48021373a3f44dbc0384bb56bd2951ca7fe7971 /nexus/arch.cc | |
parent | 59c3db46cabf9914b01451ac724ba3da33fe6f42 (diff) | |
download | nextpnr-f5d2e245e172e2481639dedc3f9b6870f069742a.tar.gz nextpnr-f5d2e245e172e2481639dedc3f9b6870f069742a.tar.bz2 nextpnr-f5d2e245e172e2481639dedc3f9b6870f069742a.zip |
nexus: Switch to BaseArch
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'nexus/arch.cc')
-rw-r--r-- | nexus/arch.cc | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/nexus/arch.cc b/nexus/arch.cc index 93fc1d82..ff0c269f 100644 --- a/nexus/arch.cc +++ b/nexus/arch.cc @@ -169,18 +169,8 @@ Arch::Arch(ArchArgs args) : args(args) if (!speed_grade) log_error("Unknown speed grade '%s'.\n", speed.c_str()); - std::unordered_set<IdString> bel_types; - for (BelId bel : getBels()) { - bel_types.insert(getBelType(bel)); - } - - for (IdString bel_type : bel_types) { - cell_types.push_back(bel_type); - - BelBucketId bucket; - bucket.name = bel_type; - buckets.push_back(bucket); - } + BaseArch::init_cell_types(); + BaseArch::init_bel_buckets(); } // ----------------------------------------------------------------------- @@ -322,8 +312,6 @@ WireId Arch::getWireByName(IdStringList name) const return WireId(); } -IdString Arch::getWireType(WireId wire) const { return id("WIRE"); } - std::vector<std::pair<IdString, std::string>> Arch::getWireAttrs(WireId wire) const { std::vector<std::pair<IdString, std::string>> ret; |