[Nios II] How fast the cpu in Nios II can reach in the Cycone ?

Can it reach 100 DMIPS =A3=BF

I give the cpu 100MHz clk, and use the Fast Core.

There is a program:

void main() { while(1) { IOWR_ALTERA_AVALON_PIO_DATA(PIO_0_BASE, data++); } }

The frequence of change of the outputs can reach 100 MHz?

Reply to
lexluthor
Loading thread data ...

lexluthor pisze:

No. Take a look over assembler file. It's not a single instruction. Additionaly NIOS need more than one clk cycle for instruction execution ( or maybe not) But anyway you can add hardware extension for special request (like parallel to serial hardware conversion)

Adam

Reply to
G¨®rski Adam

Short answer: no.

Medium answer:

Your code will look roughly like this in pseudo-assembler:

load R1,PIO_0_BASE # target address load R2,0 # data initialization loop: store R2,[R1] incr R2 jump loop

The fast version of NIOS II takes roughly two clock cycles per instruction - a 100MHz clock should give you around 50MIPS best case.

In your loop you will need three instructions per iteration. The code will fit into the single-cycle cache, freeing up the bus.

The PIO implementation uses a single cycle write, so assuming you placed it on the same bus as the processor, this won't be a bottleneck.

So your best-case rate of change on the PIO port is a little under 17MHz.

Kind regards,

Iwo

Reply to
Iwo Mergler

I've not used it, but I think Altera's C2H can take code similar to that and wrap a custom DMA engine around it automagically. Or so the FAE said!

--
Ben Jackson AD7GD

http://www.ben.com/
Reply to
Ben Jackson

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.