aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-08-02 18:10:01 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-08-02 18:10:01 +0200
commita761b772c8294858590c4abced272d04bd58aad3 (patch)
tree82b08104877e382892f4291e1567ab720b11891e /ice40
parent7f7cb6601e52650714358e84c077bf394d295809 (diff)
downloadnextpnr-a761b772c8294858590c4abced272d04bd58aad3.tar.gz
nextpnr-a761b772c8294858590c4abced272d04bd58aad3.tar.bz2
nextpnr-a761b772c8294858590c4abced272d04bd58aad3.zip
Make worker generic
Diffstat (limited to 'ice40')
-rw-r--r--ice40/main.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index 358b46ba..4a2e9532 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -406,9 +406,11 @@ int main(int argc, char *argv[])
if (vm.count("json")) {
std::string filename = vm["json"].as<std::string>();
std::string pcf = "";
- if (vm.count("pcf"))
+ w.load_json(filename);
+ if (vm.count("pcf")) {
pcf = vm["pcf"].as<std::string>();
- w.load_json(filename, pcf);
+ w.load_pcf(pcf);
+ }
}
w.show();