Forum Discussion

SCHAN189's avatar
SCHAN189
Icon for New Contributor rankNew Contributor
5 years ago

how to use serial flash loader ip with flash controller

hey,

i'm facing problem with serial flash loader.I'm trying to use my own flash controller and the thing is i'm unable to access the flash memory.

I'm currently using arria 10 fpga.I'm little confused on how to connect the pins to serial flash loader ip.

Here are the connections i've made

serial_flash:serial_flash_loader

port map(

dclk_in => clk_in,

ncso_in => config_select,

data_in => data_in,

data_oe => x"1",

noe_in => '0',

asmi_access_granted => asmi_access_request,

data_out => data_out,

asmi_access_request => asmi_access_request

);

I might be something fundamental that I do not understand since I'm new to both FPGA and quartus.

5 Replies

  • SCHAN189's avatar
    SCHAN189
    Icon for New Contributor rankNew Contributor

    yes , i have referred the document.The thing is i'm using my own flash controller and i'm facing no problem in the simulation.But when i use the sfl,i'm unable to read or write to the flash.

  • Hi,

    Can you please kindly check page 14 again,

    from the AN370

    data_in , data_out and data_oe are 4 bits

    You are setting it to be 1 bits

    i believe it is the RTL connection problem.

    Try to check page 14 for correction connection with IP.

    Thank you.

    Regards,

    Aiman

  • SCHAN189's avatar
    SCHAN189
    Icon for New Contributor rankNew Contributor

    hi,

    i'm currently using spi mode only not quad spi.

    So i think in that case,i should only be using 1 bit for read and 1 for write.

  • Hi,

    Per my understanding, you are doing a simulation? If yes, simulation cannot be done by using ip, it need to be done with hardware.

    If not, can you please share your dull v/vhdl file through private message in order for us to understand the situation?

    Thank you.

    Regards,

    Aiman