aboutsummaryrefslogtreecommitdiffstats
path: root/common/router1.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-02 15:01:52 +0200
committerGitHub <noreply@github.com>2018-08-02 15:01:52 +0200
commit0208897aa3b5bbe91810e728c825566f87c6fa0c (patch)
tree8ac42adcfbc7020bf83f1e0e45ceb152ebe57fd0 /common/router1.h
parentfb06fd4653c8d990a0f19e10fc898402a1bae378 (diff)
parent2b0bf3f9f80ba79c677505717d008bc00f1a6124 (diff)
downloadnextpnr-0208897aa3b5bbe91810e728c825566f87c6fa0c.tar.gz
nextpnr-0208897aa3b5bbe91810e728c825566f87c6fa0c.tar.bz2
nextpnr-0208897aa3b5bbe91810e728c825566f87c6fa0c.zip
Merge pull request #16 from YosysHQ/reroute
Add cleanup reroute passes to router1, improve reuse of wires
Diffstat (limited to 'common/router1.h')
-rw-r--r--common/router1.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/router1.h b/common/router1.h
index 38552c58..a9e84b6b 100644
--- a/common/router1.h
+++ b/common/router1.h
@@ -24,7 +24,14 @@
NEXTPNR_NAMESPACE_BEGIN
-extern bool router1(Context *ctx);
+struct Router1Cfg
+{
+ int maxIterCnt = 200;
+ bool cleanupReroute = true;
+ bool fullCleanupReroute = true;
+};
+
+extern bool router1(Context *ctx, const Router1Cfg &cfg);
NEXTPNR_NAMESPACE_END