Customizable Flash Programmer User Guide

ID 683271
Date 4/28/2023
Public
Document Table of Contents

3.3. Customizing the TCL Script

The Customizable Flash Programmer uses the System Console framework to send commands to the FPGA that instantiate JTAG to Avalon® Master Bridge IP core.

You can program the .rpd file to any third-party quad SPI flash using the TCL script. You can customize the TCL script to perform any quad SPI flash command, such as to program the flash registers to set the 4-byte addressing, dummy clock cycles, and quad enable (QE) bit.

Some example functions are created in the TCL script. You can use the TCL script to access the Generic Serial Flash Interface IP core Avalon® -MM registers to carry out certain flash transactions, such as read Status Register, sector erase, and read Device ID. If your design uses the Generic Serial Flash Interface IP core, you can use this script as a reference to enable your design to access the quad SPI flash.