diff options
author | David Shah <dave@ds0.me> | 2019-07-03 12:39:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-03 12:39:38 +0100 |
commit | 8f2813279c5888e655ee6f50f198cf8cb11b0b50 (patch) | |
tree | 0aac9464d3ea87d37cd0689903ba08094b7c0984 /generic/arch.cc | |
parent | ff958830d1097b9bfa3c3b34094e671741ef563d (diff) | |
parent | e27dc41a7646fd3377d2400059c916fbcc35119c (diff) | |
download | nextpnr-8f2813279c5888e655ee6f50f198cf8cb11b0b50.tar.gz nextpnr-8f2813279c5888e655ee6f50f198cf8cb11b0b50.tar.bz2 nextpnr-8f2813279c5888e655ee6f50f198cf8cb11b0b50.zip |
Merge pull request #284 from YosysHQ/json_write
Initial support for writing to json files from nextpnr.
Diffstat (limited to 'generic/arch.cc')
-rw-r--r-- | generic/arch.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/generic/arch.cc b/generic/arch.cc index 5617fa63..fa3c825d 100644 --- a/generic/arch.cc +++ b/generic/arch.cc @@ -496,13 +496,22 @@ bool Arch::place() std::string placer = str_or_default(settings, id("placer"), defaultPlacer); // FIXME: No HeAP because it needs a list of IO buffers if (placer == "sa") { - return placer1(getCtx(), Placer1Cfg(getCtx())); + bool retVal = placer1(getCtx(), Placer1Cfg(getCtx())); + getCtx()->settings[getCtx()->id("place")] = "1"; + archInfoToAttributes(); + return retVal; } else { log_error("Generic architecture does not support placer '%s'\n", placer.c_str()); } } -bool Arch::route() { return router1(getCtx(), Router1Cfg(getCtx())); } +bool Arch::route() +{ + bool retVal = router1(getCtx(), Router1Cfg(getCtx())); + getCtx()->settings[getCtx()->id("route")] = "1"; + archInfoToAttributes(); + return retVal; +} // --------------------------------------------------------------- |