Commit 2cb1030 1 parent fcddcb7 commit 2cb1030 Copy full SHA for 2cb1030
File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ To build an FPGA, run the following commands:
39
39
.. code-block :: bash
40
40
41
41
cd /path/to/prga/ # cd to the root
42
+ source envscr/settings.sh # set up the environment
42
43
cd examples/fpga/tiny/k4_N2_8x8 # choose one FPGA building example
43
44
make # build the FPGA!
44
45
@@ -48,5 +49,6 @@ following commands:
48
49
.. code-block :: bash
49
50
50
51
cd /path/to/prga/ # cd to the root
52
+ source envscr/settings.sh # set up the environment
51
53
cd examples/target/bcd2bin/tiny_k4_N2_8x8 # choose one design and one FPGA
52
54
make # run all the way to verification
Original file line number Diff line number Diff line change
1
+ function find_binary() {
2
+ binary=" $1 "
3
+ shift
4
+ $binary -h 2>&1 > /dev/null
5
+ if [ " $? " != 0 ]; then
6
+ echo " [Error] Binary not found: $binary "
7
+ echo $@
8
+ return 1
9
+ fi
10
+ return 0
11
+ }
12
+
13
+ find_binary vpr " Check out VPR from " \
14
+ " https://github.com/verilog-to-routing/vtr-verilog-to-routing, " \
15
+ " compile it and find 'vpr' under \$ VTR_ROOT/vpr/"
16
+ if [ " $? " != 0 ]; then exit 1; fi
17
+
18
+ find_binary genfasm " Check out VPR from " \
19
+ " https://github.com/verilog-to-routing/vtr-verilog-to-routing, " \
20
+ " compile it and find 'genfasm' under \$ VTR_ROOT/build/utils/fasm/"
21
+ if [ " $? " != 0 ]; then exit 1; fi
22
+
23
+ find_binary " yosys" " Check out Yosys from " \
24
+ " http://www.clifford.at/yosys/, compile and install it"
25
+ if [ " $? " != 0 ]; then exit 1; fi
26
+
27
+ rm vpr_stdout.log
28
+
29
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " /.. > /dev/null && pwd ) "
30
+ export PRGA_ROOT=$DIR
31
+ if [[ " :$PYTHONPATH :" != * " :$DIR /prga.py:" * ]]; then
32
+ export PYTHONPATH=" $DIR /prga.py${PYTHONPATH: +" :$PYTHONPATH " } "
33
+ fi
You can’t perform that action at this time.
0 commit comments