lattice: bypass refresh instruction for machXO2

This commit is contained in:
Gwenhael Goavec-Merou 2023-05-01 21:07:32 +02:00
parent a0fdccc2a4
commit caafc8edc3
1 changed files with 7 additions and 0 deletions

View File

@ -749,6 +749,13 @@ bool Lattice::program_flash(unsigned int offset, bool unprotect_flash)
else
retval = program_intFlash(
reinterpret_cast<ConfigBitstreamParser*>(&_jed));
/* for machXO2 and unlike TN02155 & TN1204 ISC_DISABLE is required
* and REFRESH no
* TODO: same for machXO3x ?
*/
if (_fpga_family == MACHXO2_FAMILY)
return retval;
return post_flash_access() && retval;
} else if (_file_extension == "fea") {
/* clear current SRAM content */