Merge branch 'master' into tutorials

This commit is contained in:
tangxifan 2021-08-31 17:17:40 -07:00 committed by GitHub
commit 801b91f776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -46,6 +46,11 @@ In particular, OpenFPGA requires specific versions for the following dependencie
:iverilog: :iverilog:
version 10.1+ is required to run Verilog-to-Verification flow version 10.1+ is required to run Verilog-to-Verification flow
:python dependencies:
python packages are also required:
python3 -m pip install -r requirements.txt
.. _install_dependencies_build: https://github.com/lnis-uofu/OpenFPGA/blob/master/.github/workflows/install_dependencies_build.sh .. _install_dependencies_build: https://github.com/lnis-uofu/OpenFPGA/blob/master/.github/workflows/install_dependencies_build.sh

View File

@ -168,13 +168,19 @@ def generate_each_task_actions(taskname):
# Check if task directory exists and consistent # Check if task directory exists and consistent
local_tasks = os.path.join(*(taskname)) local_tasks = os.path.join(*(taskname))
repo_tasks = os.path.join(gc["task_dir"], *(taskname)) repo_tasks = os.path.join(gc["task_dir"], *(taskname))
abs_tasks = os.path.abspath('/' + local_tasks)
if os.path.isdir(local_tasks): if os.path.isdir(local_tasks):
os.chdir(local_tasks) os.chdir(local_tasks)
curr_task_dir = os.path.abspath(os.getcwd()) curr_task_dir = os.path.abspath(os.getcwd())
elif os.path.isdir(abs_tasks):
curr_task_dir = abs_tasks
elif os.path.isdir(repo_tasks): elif os.path.isdir(repo_tasks):
curr_task_dir = repo_tasks curr_task_dir = repo_tasks
else: else:
clean_up_and_exit("Task directory [%s] not found" % taskname + " locally at [%s]" % local_tasks + " or in OpenFPGA task directory [%s]" % repo_tasks) clean_up_and_exit("Task directory [%s] not found" % taskname +
" locally at [%s]" % local_tasks +
", absolutely at [%s]" % abs_tasks +
", or in OpenFPGA task directory [%s]" % repo_tasks)
os.chdir(curr_task_dir) os.chdir(curr_task_dir)