Forum Discussion

m_kumar's avatar
m_kumar
Icon for Occasional Contributor rankOccasional Contributor
5 years ago

UFM page address

Hi .

I'm using max10 FPGA in user flash memory in my project . It has 4 pages in one sector each page is 64kbits of size. Now how to identify what is starting and ending address of each page in memory to write or read data from flash memory.

12 Replies

  • JohnT_Altera's avatar
    JohnT_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,


    You will need to calculate the starting address and ending address of each page based on the starting address of that sector.


    • m_kumar's avatar
      m_kumar
      Icon for Occasional Contributor rankOccasional Contributor

      My project i have 3 sector id and starting address of. (max10m40 fpga)

      Sector id 1 starting address = 0x0000; and ending address was 0x7fff;

      each page of 64kbits what is the ending address of first page and how to calculate.

  • JohnT_Altera's avatar
    JohnT_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,


    Each address will contain 32bit data. So the end address should be 0x800.


    • m_kumar's avatar
      m_kumar
      Icon for Occasional Contributor rankOccasional Contributor

      so you did 65536/32 = 0x800 right?

  • JohnT_Altera's avatar
    JohnT_Altera
    Icon for Regular Contributor rankRegular Contributor

    The picture you are showing will be based on 8bit addressing. So I would recommend you to divide by 8.


    • m_kumar's avatar
      m_kumar
      Icon for Occasional Contributor rankOccasional Contributor

      Sir in IP one option is there i,e: Flash initialization option is there in that user created mif file or hex file options indicates what sir.

  • JohnT_Altera's avatar
    JohnT_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,


    Yes. If you using Qsys with Nios then it will be using 8bit addressing. So you need to divide by 8 only which will be 0x2000.


      • m_kumar's avatar
        m_kumar
        Icon for Occasional Contributor rankOccasional Contributor

        This is my configuration sir.

        Each address is storing 32 bit data.