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链接已复制
3 回复数
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 Walterwalter,
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