Fixing file->run renaming

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-06-07 13:08:18 +02:00
parent 9ebc879826
commit 6236a10427
2 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ int main(int argc, char *argv[])
if (vm.count("run")) if (vm.count("run"))
{ {
std::vector<std::string> files = vm["file"].as<std::vector<std::string>>(); std::vector<std::string> files = vm["run"].as<std::vector<std::string>>();
for(auto filename : files) for(auto filename : files)
execute_python_file(filename.c_str()); execute_python_file(filename.c_str());
} }

View File

@ -1,4 +1,4 @@
# Run ./nextpnr-ice40 --json ice40/blinky.json --file python/dump_design.py # Run ./nextpnr-ice40 --json ice40/blinky.json --run python/dump_design.py
for cell in sorted(design.cells, key=lambda x: x.first): for cell in sorted(design.cells, key=lambda x: x.first):
print("Cell {} : {}".format(cell.first, cell.second.type)) print("Cell {} : {}".format(cell.first, cell.second.type))
for port in sorted(cell.second.ports, key=lambda x: x.first): for port in sorted(cell.second.ports, key=lambda x: x.first):