aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-02-08 17:56:08 +0000
committerGitHub <noreply@github.com>2021-02-08 17:56:08 +0000
commitbcf81f0e711a443818089bde707f708c8d18dd23 (patch)
treed8e98d35bccb0bd5f0c715d429fff9dbd11f3b90 /ecp5/arch.cc
parentf501ba0c77723242cbd1752128f00d5b4ee093c9 (diff)
parent2932dc3985181afbf88a87e58ee27dfcca433625 (diff)
downloadnextpnr-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 'ecp5/arch.cc')
-rw-r--r--ecp5/arch.cc14
1 files changed, 2 insertions, 12 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index 1f19ee86..cf1745ff 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -105,18 +105,8 @@ Arch::Arch(ArchArgs args) : args(args)
bel_to_cell.resize(chip_info->height * chip_info->width * max_loc_bels, nullptr);
- 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();
for (int i = 0; i < chip_info->width; i++)
x_ids.push_back(id(stringf("X%d", i)));