Forum Discussion

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

32-bit SSRAM must have byteenable for Nios II?

One question -

For 32-bit external SSRAM (or async. SRAM), does it have to have byte write mode enabled in order to work with Nios II processor? In other words, can Nios II handle all instructions and data exclusively in 32-bit mode? If my program uses data type of 16-bit or 8-bit, how is it handled if I don't have byte mode enabled?

How about 16-bit external memory? Can it work with Nios without byte write mode enabled?

Thanks for your help in advance!!!

12 Replies

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

    FWIW, a late follow up: the most recent version of YARI uses the SSRAM for the main memory and framebuffer, so this is pretty thoroughly tested. Check out the most recent version on http://repo.or.cz/w/yari.git

    It's currently just using the SSRAM at 50 MHz, but pending changes pushes it close to 200 MHz.

    (*) YARI is a MIPS I compatible soft core + peripherals for the DE2-70 and others. All logic is written from scratch by me, including all peripherals and memory controllers.

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

    I know it's a bit old thread but still... Byteenable's for NIOS are important if you're using EPCS or equivalent device to boot FPGA and SW code. Since Flash devices(serial) are usually 8 bit wide, the bootloader packs the SSRAM using byte enables... so if you don't have them connected or misconnected the processor will fail to run although the FPGA boots correctly.