aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/main.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-08 15:29:53 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-11 10:42:09 +0200
commit863c22620b58d1043a32cdc22b23c954afcccc10 (patch)
tree772be225642c95ee1809030d645d1dab82718a9d /ecp5/main.cc
parent981522b10ead3b3c2cbc5f9f270b9fae9320395b (diff)
downloadnextpnr-863c22620b58d1043a32cdc22b23c954afcccc10.tar.gz
nextpnr-863c22620b58d1043a32cdc22b23c954afcccc10.tar.bz2
nextpnr-863c22620b58d1043a32cdc22b23c954afcccc10.zip
ecp5: Dump routing as a sanity check
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/main.cc')
-rw-r--r--ecp5/main.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc
index 245d1cc3..c07e08de 100644
--- a/ecp5/main.cc
+++ b/ecp5/main.cc
@@ -139,6 +139,14 @@ int main(int argc, char *argv[])
ctx.check();
if (!route_design(&ctx) && !ctx.force)
log_error("Routing design failed.\n");
+
+ // TEST BEGIN
+ for (auto pip : ctx.getPips()) {
+ if (!ctx.checkPipAvail(pip)) {
+ std::cout << ctx.getWireName(ctx.getPipSrcWire(pip)).str(&ctx) << " -> " << ctx.getWireName(ctx.getPipDstWire(pip)).str(&ctx) << std::endl;
+ }
+ }
+ // TEST END
}
#ifndef NO_PYTHON