aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/arch.cc
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-16 09:45:43 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-17 12:03:16 -0800
commitc385321248c2bd181d42b7ce7a2f60baa365aa8d (patch)
treedfa19555d2bee253f20aff2b34cfdbe0bf624719 /fpga_interchange/arch.cc
parenta7421399f776ed9aebfa7b940bbaf5f327244f17 (diff)
downloadnextpnr-c385321248c2bd181d42b7ce7a2f60baa365aa8d.tar.gz
nextpnr-c385321248c2bd181d42b7ce7a2f60baa365aa8d.tar.bz2
nextpnr-c385321248c2bd181d42b7ce7a2f60baa365aa8d.zip
Add initial site router.
This site router likely cannot handle the full problem space. It may need to be replaced with a more generalize approach as testing continues. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'fpga_interchange/arch.cc')
-rw-r--r--fpga_interchange/arch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpga_interchange/arch.cc b/fpga_interchange/arch.cc
index 41659861..58fa3c85 100644
--- a/fpga_interchange/arch.cc
+++ b/fpga_interchange/arch.cc
@@ -161,7 +161,7 @@ Arch::Arch(ArchArgs args) : args(args)
for (const TileTypeInfoPOD &tile_type : chip_info->tile_types) {
max_tag_count = std::max(max_tag_count, tile_type.tags.size());
- auto &type_definition = constraints.definitions[tile_type_index];
+ auto &type_definition = constraints.definitions[tile_type_index++];
for (const ConstraintTagPOD &tag : tile_type.tags) {
type_definition.emplace_back();
auto &definition = type_definition.back();