Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- Sorry, its all very confusing if you are new to FPGAs :) You can use tools like SOPC Builder and Qsys to construct systems. Those systems can include a soft-core processor like the NIOS processor. Assuming you know how to program a processor, it might be simpler to start with FPGAs by using a processor based solution. Once you have designed an SOPC System, eg., like the "My First NIOS" tutorial, you can use the Eclipse development tools to change the software that runs on that processor. The tutorial shows you how to blink LEDs, and write messages to the JTAG-UART console. It sounds like you got as far as getting the tutorial to work, now go and change the design; add a new PIO component to the SOPC design. This will be your toggling pin. Then regenerate the system and connect it to pins at the top-level of your hardware design (much the same as the tutorial told you to do for the LEDs). Now you will have a way of controlling your pulse. Now go back to the Eclipse software, import the new sopc system, so that you get the address of your new PIO component, and you can use software to toggle that, eg., add a couple of loops to toggle the I/O high or low. Hopefully that is clearer. Once you get that working, we can talk about how to create a PWM component. Cheers, Dave --- Quote End --- thanks Dave. as i said, i am totally new, so plz assume i do know nothing. :oops: here is what i did. i add a pio component named pio_pin in sopc builder. and add ".out port from the pio pin" in the vhdl file and recompile. when i try to build a new nois program like "hello world 0" in the tutorial, it says no template found in a specific folder.... i install quartus ii from the cd rom and download nois ii from the web.