lnis-uofu / OpenFPGA

An Open-source FPGA IP Generator
https://openfpga.readthedocs.io/en/master/
MIT License
832 stars 162 forks source link

Issue in run_fpga_flow.py file parsing #1455

Closed ArslanNustian116 closed 11 months ago

ArslanNustian116 commented 11 months ago

Hi Everyone

I am following OpenFPGA documentation at this link and using the latest OpenFPGA build https://openfpga.readthedocs.io/en/master/manual/openfpga_flow/run_fpga_flow/

The section describes the bare minimum usage of OpenFPGA open_fpga_flow.py --top_module

Using this template I ran this command after source OpenFPGA shell file and setting environment variable python3 open_fpga_flow.py k6_N10_40nm.xml and2.v --top_module and2

This command produces the error as follows

Traceback (most recent call last): File "/home/arslan/OpenFPGA/openfpga_flow/scripts/run_fpga_flow.py", line 1060, in main() File "/home/arslan/OpenFPGA/openfpga_flow/scripts/run_fpga_flow.py", line 337, in main validate_command_line_arguments() File "/home/arslan/OpenFPGA/openfpga_flow/scripts/run_fpga_flow.py", line 478, in validate_command_line_arguments args.openfpga_arch_file = os.path.abspath(args.openfpga_arch_file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 399, in abspath TypeError: expected str, bytes or os.PathLike object, not NoneType

I suspect there is an issue in the run_fpga_flow.py file or documentation needs to be updated.

tangxifan commented 11 months ago

@ArslanNustian116 My suggestion is to use run_fpga_task.py all the time.

ArslanNustian116 commented 11 months ago

Thanks @tangxifan

May be some one can update the document section.