Forum Discussion
Altera_Forum
Honored Contributor
11 years agoaltera_onchip_flash
The submodule "altera_onchip_flash_avmm_data_controller" in this IP has some problem. WRITE_STATE, this FSM will unexpectedly been hold when I continues write data to flash. It will cause status...
Altera_Forum
Honored Contributor
11 years agoi replace all (write_count != 0) to (write_count > 0) in the WRITE_STATE FSM
WRITE_STATE_WRITE: begin if (write_count > 0) begin//(write_count != 0) begin write_drclk_en <= 1; write_count <= write_count - 16'd1; end else begin enable_drclk_neg_pos_write_reg <= 1; write_drclk_en <= 0; write_count <= FLASH_BUSY_TIMEOUT_CYCLE_MAX_INDEX[15:0]; write_state <= WRITE_STATE_WAIT_BUSY; end end