MCS File Generation

Alveo U45N Data Center Accelerator Card User Guide (UG1636)

Document ID
UG1636
Release Date
2023-06-23
Revision
1.0 English

This section outlines the steps to generate and program the MCS file.

The MCS file represents the PROM image which is loaded onto the Alveo accelerator card at power on. It is generated using the write_cfgmem tool. This section outlines the steps to generate and program the MCS file.

Prior to generating the MCS file, ensure your project XDC file sets the following properties.

  • CONFIG_VOLTAGE
  • BITSTREAM.CONFIG.CONFIGFALLBACK
  • BITSTREAM.GENERAL.COMPRESS
  • CONFIG_MODE
  • BITSTREAM.CONFIG.SPI_BUSWIDTH
  • BITSTREAM.CONFIG.CONFIGRATE
  • BITSTREAM.CONFIG.EXTMASTERCCLK_EN
  • BITSTREAM.CONFIG.SPI_FALL_EDGE
  • BITSTREAM.CONFIG.UNUSEDPIN
  • BITSTREAM.CONFIG.SPI_32BIT_ADDR

Use the following command with the parameters outlined in Table 1 to generate the MCS file.

write_cfgmem -force -format mcs -interface <interface_type> -size <size> -loadbit "up <user_config_region_offset> <input_file.bit>" -file "<output_file.mcs>"
Table 1. write_cfgmem Parameter Settings
write_cfgmem Parameter Setting
interface_type spix4
size 128
user_config_region_offset 0x0
input_file.bit Filename of the input .bit file
output_file.mcs MCS output filename

For additional details on write_cfgmem, see the UltraScale Architecture Configuration User Guide (UG570).