aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.cc
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2019-06-07 04:16:44 -0700
committerGitHub <noreply@github.com>2019-06-07 04:16:44 -0700
commit729e6c1ee93d5c1fadffce88c1c48c93ff75fc42 (patch)
tree8990169c09b0e1087aa00924a132ddb68c858430 /ecp5/arch.cc
parent1093d7e1228272ca73114bbc4415c48d6cba76ed (diff)
parent15a1d4f582e9d1706665fd862ade9ef3671ec8d6 (diff)
downloadnextpnr-729e6c1ee93d5c1fadffce88c1c48c93ff75fc42.tar.gz
nextpnr-729e6c1ee93d5c1fadffce88c1c48c93ff75fc42.tar.bz2
nextpnr-729e6c1ee93d5c1fadffce88c1c48c93ff75fc42.zip
Merge pull request #286 from YosysHQ/json_write_ecp5
ecp5: Use an attribute to store is_global
Diffstat (limited to 'ecp5/arch.cc')
-rw-r--r--ecp5/arch.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index b5ffa5dc..1abbd2aa 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -531,6 +531,7 @@ bool Arch::place()
bool Arch::route()
{
route_ecp5_globals(getCtx());
+ assignArchInfo();
assign_budget(getCtx(), true);
bool result = router1(getCtx(), Router1Cfg(getCtx()));
@@ -994,7 +995,7 @@ void Arch::archInfoToAttributes()
for (auto &net : getCtx()->nets) {
auto ni = net.second.get();
ni->attrs[id("IS_GLOBAL")] = ni->is_global ? "1" : "0";
- }
+ }
}
void Arch::attributesToArchInfo()