21.10.7 export_spiflash_image

Description

This Tcl command exports an SPI Flash image file to a specified directory.

export_spiflash_image \
            [-file_name {name of file}] \
            [-export_dir {absolute path to folder location}]
            [-format {SPI Flash Image format}]
            [-spiflash_device {SPI Flash device type}]

Arguments

ParameterTypeDescription
file_namestringSpecifies the name of the image file that will be exported. This parameter is optional. The default file name is the root component's name.
export_dirstringSpecifies the directory location for the export. This parameter is optional. The default export location is an export folder in the design hierarchy.
formatstringSpecifies the SPI Flash image format. This parameter is optional. The following options are supported.
  • STP
  • BIN (default)
spiflash_devicestringSpecifies the type of SPI Flash memory device. This parameter is optional. The following options are supported.
  • MT25QL01GB (default)
  • MT25QU01GB
  • MT25QL02GCBB
  • MT25QU02GCBB
Important: This parameter is only applicable if format is set to STP.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneParameter 'export_dir' has illegal value.
NoneParameter 'file_name' has illegal value.
NoneParameter 'param_name' is not defined. Valid command formatting is 'export_spiflash_image [-file_name "file_name"] [-export_dir "export_dir"]'.

Supported Families

PolarFire®
PolarFire SoC

Example

This example exports SPI Flash image in {.src/top.bin} file.

export_spiflash_image -file_name {top} -export_dir {./src} -format {BIN}