Skip to content

Commit 801b91f

Browse files
authored
Merge branch 'master' into tutorials
2 parents 814d290 + 3c041b6 commit 801b91f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/source/tutorials/getting_started/compile.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ In particular, OpenFPGA requires specific versions for the following dependencie
4646

4747
:iverilog:
4848
version 10.1+ is required to run Verilog-to-Verification flow
49+
50+
:python dependencies:
51+
python packages are also required:
52+
53+
python3 -m pip install -r requirements.txt
4954

5055
.. _install_dependencies_build: https://github.com/lnis-uofu/OpenFPGA/blob/master/.github/workflows/install_dependencies_build.sh
5156

openfpga_flow/scripts/run_fpga_task.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,19 @@ def generate_each_task_actions(taskname):
168168
# Check if task directory exists and consistent
169169
local_tasks = os.path.join(*(taskname))
170170
repo_tasks = os.path.join(gc["task_dir"], *(taskname))
171+
abs_tasks = os.path.abspath('/' + local_tasks)
171172
if os.path.isdir(local_tasks):
172173
os.chdir(local_tasks)
173174
curr_task_dir = os.path.abspath(os.getcwd())
175+
elif os.path.isdir(abs_tasks):
176+
curr_task_dir = abs_tasks
174177
elif os.path.isdir(repo_tasks):
175178
curr_task_dir = repo_tasks
176179
else:
177-
clean_up_and_exit("Task directory [%s] not found" % taskname + " locally at [%s]" % local_tasks + " or in OpenFPGA task directory [%s]" % repo_tasks)
180+
clean_up_and_exit("Task directory [%s] not found" % taskname +
181+
" locally at [%s]" % local_tasks +
182+
", absolutely at [%s]" % abs_tasks +
183+
", or in OpenFPGA task directory [%s]" % repo_tasks)
178184

179185
os.chdir(curr_task_dir)
180186

0 commit comments

Comments
 (0)