aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-04 18:40:37 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-04 18:40:37 -0700
commitaebb39c65125573386165dee3afbb93d6a18241e (patch)
tree626f0ee4c250c9b4dd0615b5ea3eb01773ed8ea7 /generic
parentdced12cbd2355604279c7277c8a48f584771dfb8 (diff)
parent7d5dba3ad378563869657b4330c178ecd8c24931 (diff)
downloadnextpnr-aebb39c65125573386165dee3afbb93d6a18241e.tar.gz
nextpnr-aebb39c65125573386165dee3afbb93d6a18241e.tar.bz2
nextpnr-aebb39c65125573386165dee3afbb93d6a18241e.zip
Merge branch 'master' into slack_histogram
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.cc4
-rw-r--r--generic/main.cc5
2 files changed, 5 insertions, 4 deletions
diff --git a/generic/arch.cc b/generic/arch.cc
index f9133f9e..a0ab58f8 100644
--- a/generic/arch.cc
+++ b/generic/arch.cc
@@ -175,7 +175,7 @@ void Arch::setGroupDecal(GroupId group, DecalXY decalxy)
// ---------------------------------------------------------------
-Arch::Arch(ArchArgs) {}
+Arch::Arch(ArchArgs) : chipName("generic") {}
void IdString::initialize_arch(const BaseCtx *ctx) {}
@@ -412,7 +412,7 @@ delay_t Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, de
// ---------------------------------------------------------------
-bool Arch::place() { return placer1(getCtx()\, Placer1Cfg()); }
+bool Arch::place() { return placer1(getCtx(), Placer1Cfg()); }
bool Arch::route() { return router1(getCtx(), Router1Cfg()); }
diff --git a/generic/main.cc b/generic/main.cc
index 3b8b3fe6..8653da01 100644
--- a/generic/main.cc
+++ b/generic/main.cc
@@ -90,7 +90,8 @@ int main(int argc, char *argv[])
return 1;
}
- std::unique_ptr<Context> ctx = std::unique_ptr<Context>(new Context(ArchArgs{}));
+ ArchArgs chipArgs{};
+ std::unique_ptr<Context> ctx = std::unique_ptr<Context>(new Context(chipArgs));
if (vm.count("verbose")) {
ctx->verbose = true;
@@ -107,7 +108,7 @@ int main(int argc, char *argv[])
#ifndef NO_GUI
if (vm.count("gui")) {
Application a(argc, argv);
- MainWindow w(std::move(ctx));
+ MainWindow w(std::move(ctx), chipArgs);
w.show();
return a.exec();