T-Core
User Manual
42
January 14, 2020
1.
Create a file named /etc/udev/rules.d/51-usbblaster.rules.
2.
Add the following lines.
SUBSYSTEMS=="usb",
ATTRS{idVendor}=="09fb",
ATTRS{idProduct}=="6010",
MODE="0666"
SUBSYSTEMS=="usb",
ATTRS{idVendor}=="09fb",
ATTRS{idProduct}=="6810",
MODE="0666"
◆
T-Core RISC-V BSP
After Quartus Prime and USB-Blaster II driver are installed, please download the T-Core RISC-V
BSP (TCORE-RISCV-FreedomE300.tar.gz) from the web (
). Then,
decompress the file using command: tar -zxvf TCORE-RISCV-FreedomE300.tar.gz. So far, you can
see TCORE-RISCV-FreedomE300 file. For more information about T-Core RISC-V BSP, please
refer following table.
Table 3-3 T-Core RISC-V BSP
file or folder
Description
Quartus_Project/TCORE_FreedomE
300
a Quartus Prime project, contains a RISC-V Core,
Freedom E300.
Quartus_Project/
TCORE_FreedomE300/V/Freedom_
E300_Wrapper.v
the top file of Freedom E300. User can use it to connect
to do logic operation, etc.
Toolchains
prebuilt tools for compiling and debugging programs.
freedom-e-sdk/bsp/drivers
contains some driver code, such as the underlying driver
code for PLIC modules, PRCI, etc.
freedom-e-sdk/bsp/include
contains header files for register address and parameter of
modules, such as SPI, UART, GPIO, etc.
freedom-e-sdk/bsp/libwrap
contains specific implementation of underlying library
functions related to the hardware platform.
freedom-e-sdk/bsp/env/freedom-e300
-terasic
contains Terasic T-Core board supported package.
freedom-e-sdk/software
contains demonstration for reference.
freedom-e-sdk/Makefile
the main Makefile for compilation and debug.
◆
Download a pof file to FPGA
Follow the procedures below to write RISC-V FPGA configure data into MAX10 internal flash.
o
Make sure SW2 is changed to correct location, set SW2.1=0 and SW2.2=1, as shown in
to ensure MAX10 is on JTAG chain, and RISC-V is off JTAG chain.