Altera_Forum
Honored Contributor
13 years agoProblem with integrating Qsys system in Quartus with created Qsys PWM module
I'm busy with a projects for a month now and I now need to create a PWM component to add it to my main system. After some googling I found a design example with a PWM (pulse-width modulator) to demonstrate the steps how to create a component and instantiate it in a system. It's is from the quartus handbook, section ii: building systels with sopc builder (2005). (https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0cdiqfjaa&url=http%3a%2f%2fwww.ee.nmt.edu%2f~erives%2f554_10%2faltera_pwm.pdf&ei=yebbuaglfy-grafq_idwdw&usg=afqjcneyydpyxn3pogqlfa5ztyteqvs6pq&sig2=nlsqp5dpuivtkjpfjapupa&bvm=bv.44697112,d.bmk)
Because it's a bit outdated and uses SOPC I followed the tutorial "Making Qsys Components" to create the PWM module. I integrated this in a simpel system with a NIOS II CPU, On-chip RAM and the clock which should be fine I think. I now have to create the top-level file and create the right pin-mappings. I'm using the Altera DE2-115 Board and I just want to use the a green led as the output for the PWM. So the speed can be controlled from the software part by writing the registers. Later on, I can change this to an external pin to control a dc fan. I hope somebody can help me further because I'm stuck. My projects files can be found h (https://www.dropbox.com/sh/f8paupnrprnciqy/cstvdoljwy)ere (https://www.dropbox.com/sh/f8paupnrprnciqy/cstvdoljwy)