diff options
author | myrtle <gatecat@ds0.me> | 2022-12-07 16:19:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 16:19:55 +0100 |
commit | 0eb53d59d84ea1c46de7d9e25eb5a9901544202d (patch) | |
tree | aa7203b5b1064f327b863e7d4cb025b6292c55e4 /generic/viaduct | |
parent | 519011533a3b7582b984226536cb424d462d1599 (diff) | |
parent | df99b4ff6c5ce88ce1a731dc8682ab1875b8c237 (diff) | |
download | nextpnr-0eb53d59d84ea1c46de7d9e25eb5a9901544202d.tar.gz nextpnr-0eb53d59d84ea1c46de7d9e25eb5a9901544202d.tar.bz2 nextpnr-0eb53d59d84ea1c46de7d9e25eb5a9901544202d.zip |
Merge pull request #1059 from YosysHQ/gatecat/validity-errors
Add new option for verbose validity errors, use for ice40
Diffstat (limited to 'generic/viaduct')
-rw-r--r-- | generic/viaduct/example/example.cc | 2 | ||||
-rw-r--r-- | generic/viaduct/fabulous/fabulous.cc | 5 | ||||
-rw-r--r-- | generic/viaduct/okami/okami.cc | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/generic/viaduct/example/example.cc b/generic/viaduct/example/example.cc index 987c3236..7a61a594 100644 --- a/generic/viaduct/example/example.cc +++ b/generic/viaduct/example/example.cc @@ -62,7 +62,7 @@ struct ExampleImpl : ViaductAPI void prePlace() override { assign_cell_info(); } - bool isBelLocationValid(BelId bel) const override + bool isBelLocationValid(BelId bel, bool explain_invalid) const override { Loc l = ctx->getBelLocation(bel); if (is_io(l.x, l.y)) { diff --git a/generic/viaduct/fabulous/fabulous.cc b/generic/viaduct/fabulous/fabulous.cc index 3c6f025f..e2fe1b74 100644 --- a/generic/viaduct/fabulous/fabulous.cc +++ b/generic/viaduct/fabulous/fabulous.cc @@ -81,7 +81,10 @@ struct FabulousImpl : ViaductAPI } void prePlace() override { assign_cell_info(); } - bool isBelLocationValid(BelId bel) const override { return blk_trk->check_validity(bel, cfg, cell_tags); } + bool isBelLocationValid(BelId bel, bool explain_invalid) const override + { + return blk_trk->check_validity(bel, cfg, cell_tags); + } private: FabricConfig cfg; // TODO: non-default config diff --git a/generic/viaduct/okami/okami.cc b/generic/viaduct/okami/okami.cc index 8142756f..4ff97cb3 100644 --- a/generic/viaduct/okami/okami.cc +++ b/generic/viaduct/okami/okami.cc @@ -64,7 +64,7 @@ struct OkamiImpl : ViaductAPI void prePlace() override { assign_cell_info(); } - bool isBelLocationValid(BelId bel) const override + bool isBelLocationValid(BelId bel, bool explain_invalid) const override { Loc l = ctx->getBelLocation(bel); if (is_io(l.x, l.y)) { |