Forum Discussion

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

execution 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 ;)

3 Replies

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

    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.. ?!

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

    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.