Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

ALT_ASMI and lpm_SerialFlashLoader

I use a Cyclone II EP2C5 with a M25P40 (EPCS4) serial configuration device.

I want to program the serial EEPROM with JTAG over the SerialFlasLoader in the Cyclone II.

And I need to store a few user configuration words in the EEPROM. For that I want to use the ALT_ASMI megafunction.

Can I use this two megafunction together? Does Quartus II 7.2 recognize that both use the ASMI interface/IOs?

With only the ALT_ASMI megafunction everything is ok. But when I add the SFL I get a error:

error: cannot place node "memory_interface:memory_interface_inst|lpm_serialflashloader:lpm_serialflashloader_inst|altserial_flash_loader:altserial_flash_loader_component|data0out_int" of type asmi block

For this error I submitted a service request (still open). Has anyone experienced similar problems? Or did someone use both megafunction together?

Felix

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ALTASMI Megafunctions is exclusively using the asmiblock primitive and has no options to share it. Also Altserial_flash_loader uses it internally, but can export the asmiblock signals. However the ATLASMI Megafunction code can't use the signals, it has to be modified.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yesterday I found this too. The solution would be to use the Altserial_flash_loader and design my own SPI memory access block with the shared pins from SFL.

    It would be nice if there was a option in ALT_ASMI to use a external asmiblock.

    Felix
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The asmiblock is instantiated directly in the Megawizard generated VHDL file. It shouldn't be too complicated to edit this design.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks FvM. This morning I received a solution from my service request:

    --- Quote Start ---

    You may not need to instantiate the SFL in your design, but to invoke the SFL image when you trying to program the EPCS using the jic file. Kindly please refer to the attached document for more information.

    --- Quote End ---

    I will try this as soon as I have the board.

    Felix
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes, the Altera solution is to use a different (blank) design containing only the SFL. It is generally acceptable, when SFL is intended for production or update purposes, when the system isn't required to stay operational.

    Another reason for this solution may be in conflicting I/O placement rules for the AS pins or Quartus bugs that cause failure of SFL in a design.