Fixing file->run renaming
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
9ebc879826
commit
6236a10427
@ -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());
|
||||||
}
|
}
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user