2016-11-29 14:23:11 +01:00
|
|
|
Freedom
|
|
|
|
=======
|
|
|
|
|
|
|
|
This repository contains the RTL created by SiFive for its Freedom E300 and U500
|
|
|
|
platforms. The Freedom E310 Arty FPGA Dev Kit implements the Freedom E300
|
|
|
|
Platform and is designed to be mapped onto an [Arty FPGA Evaluation
|
|
|
|
Kit](https://www.xilinx.com/products/boards-and-kits/arty.html). The Freedom
|
|
|
|
U500 VC707 FPGA Dev Kit implements the Freedom U500 Platform and is designed to
|
|
|
|
be mapped onto a [VC707 FPGA Evaluation
|
|
|
|
Kit](https://www.xilinx.com/products/boards-and-kits/ek-v7-vc707-g.html).
|
2016-12-01 23:06:37 +01:00
|
|
|
Both systems boot autonomously and can be controlled via an external debugger.
|
2016-11-29 14:23:11 +01:00
|
|
|
|
|
|
|
Please read the section corresponding to the kit you are interested in for
|
|
|
|
instructions on how to use this repo.
|
|
|
|
|
2017-08-20 10:39:45 +02:00
|
|
|
Software Requirement
|
|
|
|
--------------------
|
2016-11-29 14:23:11 +01:00
|
|
|
|
2017-08-20 10:39:45 +02:00
|
|
|
To compile the bootloaders for both Freedom E300 Arty and U500 VC707
|
|
|
|
FPGA dev kits, the RISC-V software toolchain must be installed locally and
|
|
|
|
set the $(RISCV) environment variable to point to the location of where the
|
|
|
|
RISC-V toolchains are installed. You can build the toolchain from scratch
|
|
|
|
or download the tools here: https://www.sifive.com/products/tools/
|
|
|
|
|
|
|
|
|
|
|
|
Freedom E300 Arty FPGA Dev Kit
|
2016-11-29 14:23:11 +01:00
|
|
|
------------------------------
|
|
|
|
|
2017-08-20 10:39:45 +02:00
|
|
|
The Freedom E300 Arty FPGA Dev Kit implements a Freedom E300 chip.
|
2016-11-29 14:23:11 +01:00
|
|
|
|
|
|
|
### How to build
|
|
|
|
|
2017-08-20 10:39:45 +02:00
|
|
|
The Makefile corresponding to the Freedom E300 Arty FPGA Dev Kit is
|
2016-11-29 14:23:11 +01:00
|
|
|
`Makefile.e300artydevkit` and it consists of two main targets:
|
|
|
|
|
|
|
|
- `verilog`: to compile the Chisel source files and generate the Verilog files.
|
|
|
|
- `mcs`: to create a Configuration Memory File (.mcs) that can be programmed
|
|
|
|
onto an Arty FPGA board.
|
|
|
|
|
|
|
|
To execute these targets, you can run the following commands:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ make -f Makefile.e300artydevkit verilog
|
|
|
|
$ make -f Makefile.e300artydevkit mcs
|
|
|
|
```
|
|
|
|
|
2017-11-03 19:20:08 +01:00
|
|
|
These will place the files under `builds/e300artydevkit/obj`.
|
2016-11-29 14:23:11 +01:00
|
|
|
|
|
|
|
Note that in order to run the `mcs` target, you need to have the `vivado`
|
|
|
|
executable on your `PATH`.
|
|
|
|
|
|
|
|
### Bootrom
|
|
|
|
|
|
|
|
The default bootrom consists of a program that immediately jumps to address
|
|
|
|
0x20400000, which is 0x00400000 bytes into the SPI flash memory on the Arty
|
|
|
|
board.
|
|
|
|
|
|
|
|
|
|
|
|
Freedom U500 VC707 FPGA Dev Kit
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
The Freedom U500 VC707 FPGA Dev Kit implements the Freedom U500 platform.
|
|
|
|
|
|
|
|
### How to build
|
|
|
|
|
|
|
|
The Makefile corresponding to the Freedom U500 VC707 FPGA Dev Kit is
|
|
|
|
`Makefile.u500vc707devkit` and it consists of two main targets:
|
|
|
|
|
|
|
|
- `verilog`: to compile the Chisel source files and generate the Verilog files.
|
|
|
|
- `mcs`: to create a Configuration Memory File (.mcs) that can be programmed
|
|
|
|
onto an VC707 FPGA board.
|
|
|
|
|
|
|
|
To execute these targets, you can run the following commands:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ make -f Makefile.u500vc707devkit verilog
|
|
|
|
$ make -f Makefile.u500vc707devkit mcs
|
|
|
|
```
|
|
|
|
|
2017-11-03 19:20:08 +01:00
|
|
|
These will place the files under `builds/u500vc707devkit/obj`.
|
2016-11-29 14:23:11 +01:00
|
|
|
|
|
|
|
Note that in order to run the `mcs` target, you need to have the `vivado`
|
|
|
|
executable on your `PATH`.
|
|
|
|
|
|
|
|
### Bootrom
|
|
|
|
|
|
|
|
The default bootrom consists of a bootloader that loads a program off the SD
|
|
|
|
card slot on the VC707 board.
|