Altera_Forum
Honored Contributor
13 years agoexecution time
quiiiiiiiiiick question, :)
how do i know the exact time my niosII/e processor (50 MHz clock) takes to execute a given instruction? thaaaanks in advance ;)quiiiiiiiiiick question, :)
how do i know the exact time my niosII/e processor (50 MHz clock) takes to execute a given instruction? thaaaanks in advance ;)RTFM :-)
Most instructions take 6 clocks.thanks dsl ^^ that's known already. as you said it's MOST but not ALL of'em require 6 clocks , so i'm wondering if there's a way to tell the exact time say in ns.. ?!
Best to work in clocks.
The only real variability is the avalon MM transfer, both for code fetch and any data cycles. For fpga internal memory this is probably 2 clock (assuming there isn't contention for the memory). I've analised and measured the 'f' processor (with branch prediction disabled) executing from tightly coupled memory and the two match. Signaltap did show an undocumented stall if a memory write follows a memory read to the same tightly coupled memory area.