Altera_Forum
Honored Contributor
9 years agoQSYS - Clock sensitiveness
Hello together!
I recently started using soft-cores in FPGA application. The last few days I spend some time to make investigations regarding to the NIOS-II clock sensitiveness (frequency and duty cycle behaviour). I built up a system based on the DE0-nano board (illustrated in figure 1 from the attached file). The QSYS-System itself is built up pretty easy (figured in figure 2) and has the task to toggle a parallel input/output peripheral. The used embedded code is illustrated in Listing 1. One run through the while loop needs 12 clock cycles(determined by stepwise debugging and counting the steps). Following behaviour of the System is not 100 percent clear for me. By applying the 50MHz clk (direct feed through to the QSYS-System) leads to a output signal which has a frequency of 271kHz. That is a factor of approximately 183. Following questions arises and I hope some of you can help me to understand the Soft-Core system better. 1. Investigations showed that the output signal frequency is the factor 183 smaller than the input frequency. I assume beside the amount of clock cycles which the software needs, the clock frequency of the Avalon-Bus has the main impact of the frequency reduction. Is that right? Depends the Avalon Bus frequency on the input frequency? 2. Downloading the .ELF-File with the ECLIPSE was possible till a input clock frequency of ~3 MHz. Why is the JTAG (which has his own clock about 6MHz) functionality dependent on the clock signal of the qsys-system? I look forward to your reply. :-) Thank you & best regards Stefan