blob: 10f017364c9f7ba7cfc87bc74b24d8cb8fc3c20f [file] [log] [blame]
#ifndef PRJXRAY_LIB_XILINX_XCUPSERIES_ECC_H_
#define PRJXRAY_LIB_XILINX_XCUPSERIES_ECC_H_
#include <cstdint>
#include <vector>
namespace prjxray {
namespace xilinx {
namespace xcupseries {
// Extend the current ECC code with one data word (32 bit) at a given
// word index in the configuration frame and return the new ECC code.
uint32_t icap_ecc(uint32_t idx, uint32_t data, uint32_t ecc);
// Updates the ECC information in the frame.
void updateECC(std::vector<uint32_t>& data);
} // namespace xcupseries
} // namespace xilinx
} // namespace prjxray
#endif // PRJXRAY_LIB_XILINX_XCUPSERIES_ECC_H_