diff options
author | gatecat <gatecat@ds0.me> | 2021-02-08 17:56:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 17:56:08 +0000 |
commit | bcf81f0e711a443818089bde707f708c8d18dd23 (patch) | |
tree | d8e98d35bccb0bd5f0c715d429fff9dbd11f3b90 /ice40/arch.cc | |
parent | f501ba0c77723242cbd1752128f00d5b4ee093c9 (diff) | |
parent | 2932dc3985181afbf88a87e58ee27dfcca433625 (diff) | |
download | nextpnr-bcf81f0e711a443818089bde707f708c8d18dd23.tar.gz nextpnr-bcf81f0e711a443818089bde707f708c8d18dd23.tar.bz2 nextpnr-bcf81f0e711a443818089bde707f708c8d18dd23.zip |
Merge pull request #568 from YosysHQ/dave/arch-override
Create a new BaseArch that formally specifies the Arch API and provides some base implementations
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r-- | ice40/arch.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc index b7a87842..5b59fea4 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(); } // ----------------------------------------------------------------------- |