Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12598 Discussions

How to find time required for execution of custom instructions added to NIOSII processor.

VPati1
Beginner
1,193 Views

Hi,

I am working on NIOSII processor.

I have added some custom instructions to NIOSII processor. I want to find time required for execution of those custom instructions. I have tried with timestamp function by adding timer in QSYS as per code given in NIOSII classic software development pdf.

But for every instruction I am getting zero time as execution time or it is giving like- no timestamp device is available.

I am using QUARTUS 17.0 prime Lite edition.

please help me to resolve this issue.

Thanks in Advance

 

0 Kudos
2 Replies
JOHI
New Contributor II
425 Views

Hello,

Have you considered simulation of your niosII system in Modelsim? If you count clock cycles you might get the info you need. Some time ago I thought that simulation of nios system in modelsim was not possible, but it is. See relevant tutorials form more info.

Best Regards,

Johi.

VPati1
Beginner
425 Views

Thank you very much JOHI...I will try your solution...

0 Kudos
Reply