-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
167 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
How to build PlatformIO based project | ||
===================================== | ||
|
||
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) | ||
2. Download [development platform with examples](https://github.com/platformio/platform-chipsalliance/archive/develop.zip) | ||
3. Extract ZIP archive | ||
4. Run these commands: | ||
|
||
```shell | ||
# Change directory to example | ||
$ cd platform-chipsalliance/examples/native-blink_asm | ||
|
||
# Build project | ||
$ pio run | ||
|
||
# Upload firmware | ||
$ pio run --target upload | ||
|
||
# Upload bitstream | ||
$ pio run --target program_fpga | ||
|
||
# Generate trace for GTKWave | ||
$ pio run --target generate_trace | ||
|
||
# Start verilator as JTAG server for OpenOCD | ||
$ pio run --target start_verilator | ||
|
||
# Generate bistream for SweRV Core using Xilinx Vivado | ||
$ pio run --target generate_bitstream | ||
|
||
# Upload firmware for the specific environment | ||
$ pio run -e swervolf_nexys --target upload | ||
|
||
# Clean build files | ||
$ pio run --target clean | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.globl _start | ||
_start: | ||
|
||
next: | ||
li a1, 0x80001012 # Read the Switches | ||
lw t0, 0(a1) | ||
|
||
li a0, 0x80001010 # Write the LEDs | ||
sw t0, 0(a0) | ||
|
||
beq zero, zero, next # infinite loop | ||
|
||
.end |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.