aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-02-05 11:36:19 +0000
committerD. Shah <dave@ds0.me>2021-02-05 19:19:17 +0000
commit59c3db46cabf9914b01451ac724ba3da33fe6f42 (patch)
treea3089b81422e6c162b0bdd1fdf7673db494e7dd4 /ice40/arch.cc
parenta8a27299ae46143c9fadb1d9153a964492525f4a (diff)
downloadnextpnr-59c3db46cabf9914b01451ac724ba3da33fe6f42.tar.gz
nextpnr-59c3db46cabf9914b01451ac724ba3da33fe6f42.tar.bz2
nextpnr-59c3db46cabf9914b01451ac724ba3da33fe6f42.zip
ice40: Switch to BaseArch
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc14
1 files changed, 2 insertions, 12 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index dd58361e..a402bdcd 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -127,18 +127,8 @@ Arch::Arch(ArchArgs args) : args(args)
pip_to_net.resize(chip_info->pip_data.size());
switches_locked.resize(chip_info->num_switches);
- 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();
}
// -----------------------------------------------------------------------