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++

Timer

Altera_Forum
名誉分销商 II
1,193 次查看

good evening to everybody  

Sorry for my english , i'm italian  

I'm a Plc-Pc programmer , and now i start this new adventure  

with fpga .I order , and waiting too , a stratix2 dev. board. 

In the meantime , i my free time , a started to download and study  

different .pdf files from Altera , about Nios II , Quartus II , and else . 

I want to ask if is possible create a vhdl file , describeing a component Timer  

;this component will accept these parameters : 

-start  

-stop 

-Preset  

Like using timer in plc , TON and TOF timer. 

In his hw it elaborate every 100 ms a counter if the start-bit is true ,and when 

the the counter il >= then Preset it return Done . 

In Nios II ide i want to use like this  

 

IF (mycondition=true)  

Timer.start=true; 

Timer.Preset=1000; // 1 Sec  

else  

Timer.stop=true; 

Timer.start=false; 

 

...........................// other logical  

 

IF (Timer.done=true)  

//.......excute something 

 

When i test done my Timer , i can to use a lot of this component . 

It's possible make this using SOPC?  

i suppose "of course" , but how ? 

Regards and thanks  

Walter
0 项奖励
3 回复数
Altera_Forum
名誉分销商 II
490 次查看

Sorry 

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif  

I open just now Quartus II and try SOPC application , and i saw that  

timer component already exists , and i gave a lot of timer in my system  

without problem  

I suppose only limitation is the memory , but i think i can to use many timers  

But can i set register interval from NIOS II IDE ? 

thanks 

Walter
0 项奖励
Altera_Forum
名誉分销商 II
490 次查看

walter, 

 

In short....yes. You can find more information.... here (http://www.altera.com/literature/lit-nio2.jsp). 

 

Cheers, and enjoy the reading http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif  

 

- slacker
0 项奖励
Altera_Forum
名誉分销商 II
490 次查看

yes  

i had download these files just last week  

i have all documentation 

thanks !!! 

walter
0 项奖励
回复