Skip to content

Commit 2822666

Browse files
committed
lattice: ditto
1 parent 36a7d92 commit 2822666

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/lattice.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,7 @@ bool Lattice::program_mem()
525525
progress.done();
526526
} else {
527527
_jtag->toggleClk(1000);
528-
}
529528

530-
if (_fpga_family != ECP3_FAMILY) {
531529
uint32_t status_mask;
532530
if (_fpga_family == MACHXO3D_FAMILY)
533531
status_mask = REG_STATUS_MACHXO3D_CNF_CHK_MASK;
@@ -546,9 +544,11 @@ bool Lattice::program_mem()
546544
wr_rd(0xff, NULL, 0, NULL, 0);
547545
}
548546

549-
if (_verbose && _fpga_family != ECP3_FAMILY)
547+
if (_verbose)
550548
printf("userCode: %08x\n", userCode());
551549

550+
/* bypass */
551+
wr_rd(0xff, NULL, 0, NULL, 0);
552552
/* disable configuration mode */
553553
printInfo("Disable configuration: ", false);
554554
if (!DisableISC()) {
@@ -581,6 +581,8 @@ bool Lattice::program_mem()
581581
if (_verbose)
582582
displayReadReg(readStatusReg());
583583

584+
/* bypass */
585+
wr_rd(0xff, NULL, 0, NULL, 0);
584586
_jtag->go_test_logic_reset();
585587
return true;
586588
}

0 commit comments

Comments
 (0)