Skip to content

Commit f9a2f02

Browse files
Merge pull request #19 from hcallahan-lowrisc/small_changes
Move python venv to ./venv dir, add backup programming command
2 parents e894a92 + daf0531 commit f9a2f02

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
bin/
21
build/
3-
lib/
4-
lib64
5-
pyvenv.cfg
6-
share/
72
sw/build/
3+
.venv/

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ recommended)
3434

3535
```bash
3636
# Setup python venv
37-
python3 -m venv .
38-
source ./bin/activate
37+
python3 -m venv .venv
38+
source .venv/bin/activate
3939

4040
# Install python requirements
4141
pip3 install -r python-requirements.txt
@@ -50,11 +50,11 @@ First the software must be built. This is provide an initial binary for the FPGA
5050
build.
5151

5252
```
53-
cd sw
54-
mkdir build
55-
cd build
53+
mkdir sw/build
54+
pushd sw/build
5655
cmake ../
5756
make
57+
popd
5858
```
5959

6060
Note the FPGA build relies on a fixed path to the initial binary (blank.vmem) so
@@ -96,6 +96,9 @@ To program the FPGA, either use FuseSoC again
9696

9797
```
9898
fusesoc --cores-root=. run --target=synth --run lowrisc:ibex:demo_system
99+
100+
# If the above does not work, try executing the programming operation manually with..
101+
make -C ./build/lowrisc_ibex_demo_system_0/synth-vivado/ pgm
99102
```
100103

101104
Or use the Vivado GUI

0 commit comments

Comments
 (0)