aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-06-13 18:39:16 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-06-13 18:39:16 +0200
commit4de147d9e42d7c932773544011a36e4550530a9e (patch)
tree076ab4930c4bb36be05aa3711f08e929c4b713b2 /common
parentc760b0326182c3779373fba1f77aad200c9b1b89 (diff)
downloadnextpnr-4de147d9e42d7c932773544011a36e4550530a9e.tar.gz
nextpnr-4de147d9e42d7c932773544011a36e4550530a9e.tar.bz2
nextpnr-4de147d9e42d7c932773544011a36e4550530a9e.zip
Save settings that we saved in project
Diffstat (limited to 'common')
-rw-r--r--common/command.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/command.cc b/common/command.cc
index 43707c83..4822585c 100644
--- a/common/command.cc
+++ b/common/command.cc
@@ -229,6 +229,10 @@ void CommandHandler::setupContext(Context *ctx)
ctx->timing_driven = true;
if (vm.count("no-tmdriv"))
ctx->timing_driven = false;
+
+ settings->set("arch.name", std::string(ctx->archId().c_str(ctx)));
+ settings->set("arch.type", std::string(ctx->archArgsToId(ctx->archArgs()).c_str(ctx)));
+ settings->set("seed", ctx->rngstate);
}
int CommandHandler::executeMain(std::unique_ptr<Context> ctx)