Hi motal,
> I have design with spi flash to store my firmware and sdram to run it from.
> My EPCS is too small to run code from it.
You really shouldn't need much code to load a small application (a 2nd stage
boot loader) that pulls your code in from an SPI device. How much room
is left on your EPCS?
> If I understand well, the boot-loader can integrate to the NIOS within the
> hardware image. Is that correct?
Yes -- or you could try to replace/modify the default bootloader in the EPCS
peripheral -- have it load from your SPI device rather than the EPCS device.
From a practical point-of-view, the EPCS is just an SPI device that you
don't get to do pin assignments for ;-)
Regards,
--Scott