Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12435 Discussions

how to use sys_timer and high_res_timer

Altera_Forum
Honored Contributor II
1,276 Views

when I test the simple socket server sample, it be required sys_timer and  

high_res_timer. 

 

how to use it .where? when ? 

 

thanks !
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
122 Views

sys_timer is the main timer, used for OS scheduling, periodic interrupt, system ticks counting, and so on. 

high_res_timer is not mandatory; you may optionally use it in your application for performance measurements. For example you can associate it to the HAL timestamp driver and accurately measure execution times of pieces of code.
Altera_Forum
Honored Contributor II
122 Views

The sys_timer and high_res_timer components are interval timer components in your qsys or sopc design.

Altera_Forum
Honored Contributor II
122 Views

thanks all. 

 

or it is the following?: 

 

the sys_timer is for sys_clk_timer(nios ii bsp editor->common->main->) 

and other is for timestamp_timer?
Altera_Forum
Honored Contributor II
122 Views

 

--- Quote Start ---  

 

the sys_timer is for sys_clk_timer(nios ii bsp editor->common->main->) 

and other is for timestamp_timer? 

--- Quote End ---  

 

 

That's correct. 

Anyway, as Kirska said, they both are actually generic interval timer components. 

So you could possibly define two other timers, call them timer1 and timer2 and assign them to sys_clk_timer and timestamp_timer in bsp editor.
Reply