Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- thanks Dave. as i said, i am totally new, so plz assume i do know nothing. :oops: --- Quote End --- Ok :) I haven't used the NIOS tools very much, so I don't have any advice to offer. However, since I started you down that track, I will make amends by providing you with the hardware-only solution. Download the attached zip file and unzip it. Start Modelsim and change to the directory you just unzipped; make sure you are in the top-level folder, the one containing src/, scripts/, and test/. At the modelsim command line type 'source scripts/sim.tcl', and then when that finishes, type 'pulse_generator_tb'. What you have there is a parameterized component that generates pulses with the high and low time you specify via generics. The test shows a 10ms period signal with 1ms pulses. You can change the parameters to whatever you like. I'll leave it as an exercise to the student for you to put it into your DE0-nano board. Cheers, Dave