diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-02 18:10:01 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-02 18:10:01 +0200 |
commit | a761b772c8294858590c4abced272d04bd58aad3 (patch) | |
tree | 82b08104877e382892f4291e1567ab720b11891e /ice40 | |
parent | 7f7cb6601e52650714358e84c077bf394d295809 (diff) | |
download | nextpnr-a761b772c8294858590c4abced272d04bd58aad3.tar.gz nextpnr-a761b772c8294858590c4abced272d04bd58aad3.tar.bz2 nextpnr-a761b772c8294858590c4abced272d04bd58aad3.zip |
Make worker generic
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/main.cc | 6 |
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(); |