Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 3.32 KB

README.md

File metadata and controls

69 lines (51 loc) · 3.32 KB

CYC1000 Remote System Upgrade

This repository contains a source code of the CYC1000 Remote System Upgrade project. The goal is to show possible ways to update the FPGA bitstream (Intel/Altera), which is stored on attached flash memory. The first implementation allows remote bitstream updates via the UART interface.

The project is using the following open-source codes:

To clone the repository, run:

git clone --recursive git@github.com:jakubcabal/cyc1000-rsu.git

FPGA design

TODO list

  • Write bitstream (.rbf) to flash memory via UART interface
  • Support for UART command to reboot FPGA
  • Support for multiple bitsreams
  • Write bitstream (.rbf) to flash memory via Ethernet

Remote update bitstream

The initial design with this Remote System Upgrade (RSU) logic must be loaded into the FPGA (flash memory) in the usual way using Quartus. Then it is possible to load new bitstream (.rbf) using the following Python script, which can be found in the sw directory.

python .\update_bitstream.py ..\rtl\synth\FPGA.rbf

The .rbf file can be obtained by conversion from a .sof file. Or you can set Quartus to generate an .rbf file already in the assembler stage at the same time as the .sof file. In order to continue to use this method of updating the bitstream, the new bitstream must also contain RSU logic.

On Windows 10, bitstream writing via the UART interface was very slow (~ 15 minutes), the solution was to change the Latency Timer setting to 1 ms. (Device manager -> Ports -> COM1 -> Advanced). Now writing takes about 2 minutes.

Top level diagram

          +----+----+
UART <----| UART2WB |
PORT ---->| MASTER  |
          +---------+
               ↕
       +=======+========+===============+ WISHBONE BUS
       ↕                ↕               ↕
 +-----+-----+    +-----+-----+    +----+----+
 | ASMI2 IP  |    | Remote    |    | SYSTEM  |
 |           |    | Update IP |    | MODULE  |
 +-----------+    +-----------+    +---------+
       ↕
     FLASH

Main modules description

  • UART2WB MASTER - Transmits the Wishbone requests and responses via UART interface (Wishbone master).
  • SYSTEM MODULE - Basic system control and status registers (version, debug space etc.).
  • ASMI2 IP - The ASMI Parallel II Intel FPGA IP provides access to the configuration devices (EPCQ), IP User Guide.
  • Remote Update IP - The Remote Update Intel FPGA IP core implements a device reconfiguration, IP User Guide.

License

The project is available under the MIT license (MIT). Please read LICENSE file.