engpro Posted September 25, 2013 Report Share Posted September 25, 2013 hello i am new here.i just bought a papilio pro and i have a question.i connected a led to A(15) and the gnd. and just programmed in vhdl set A to out.it worked and A <= "0000000000000001"it light up.now i set the C port to output and A <= Cto my suprice if i stick a wire in the C(15) slot the led turned on.also if i was just close to the wire not touching it, it turned on.i feel like something is wrong, my multimer says that port C(15) actualy gives 1.2 volts.it feels like i am grounding the curcuit when i touch the hangin wire. i am sorry for my bad english.i sum up.how do one implement an input button correctly that is hocked up to a breadboard. thanks for all your help. Link to comment Share on other sites More sharing options...
alex Posted September 25, 2013 Report Share Posted September 25, 2013 I assume you meant to say that you set the C port to input, not output. You now have a floating input unless you go into the constraints UCF file and assign a pull-up or more likely in this case a pull-down to it. This will stop it picking up noise and giving you unexpected results.You can also do this with an external resistor if you find the hardware way easier for you as a beginner. Link to comment Share on other sites More sharing options...
engpro Posted September 26, 2013 Author Report Share Posted September 26, 2013 thanks for your help i added | pulldown=true; to to the contraint file on all the c ports.question now when c(14) is pulled down it respond when i feed it 3v3.is this an ok voltage level or could it be harmfull for the device?also where can i read more about pullups and pulldown, and how they work? lastly my goal is to implement an soft microprocessor, where can i read about how to load and readdata to a memory cell i created in vhdl.maby a book you could recomend or website.thanks a lot Link to comment Share on other sites More sharing options...
alex Posted September 26, 2013 Report Share Posted September 26, 2013 I like that you set your sights so high, aim for the stars Start with http://hamsterworks.co.nz/mediawiki/index.php/FPGA_course and http://www.fpga4fun.com and also take a look at the source of existing microprocessor implementations on http://opencores.org Link to comment Share on other sites More sharing options...
Jack Gassett Posted September 26, 2013 Report Share Posted September 26, 2013 Don't forget to download the ZAP IDE and look at the AVR8 and ZPUino Soft Processors, there is a lot to be learned from using them. Here is an app note that talks about using BRAM.You can take a look at the data2mem User Guide too.There is also a wizard in coregen to generate a memory block out of bram. Jack. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.