Categories

Move pins on the fly on the Papilio FPGA board

Posted on Monday, January 16th, 2012 in tutorials by DP

Gadget Factory started a weekly series of tutorials for their Papilio FPGA development boards. This week they cover how to move IO pins around and change their assignments.

Possibly the most exciting feature of the Papilio is the ability to shift peripheral functionality to any pin at any time, completely on the fly. Shifting SPI pins allows you to easily connect up to 12 SPI devices at once! Or control multiple stepper motors by shifting PWM outputs! Finally, shifting functionality means you never need to worry about where to connect Wings. Every I/O pin is equal, so go ahead and connect your Wing to any open Wing Slot, the FPGA can shift to accommodate the Wing!

We like using the programmable pin function on PIC24Fs too. There’s also some other uCs with pin assignment. If we have the choice between two otherwise similar chips and one has programmable pins, we almost always go for the reprogrammable pins. It makes PCB routing much easier, and minor circuit misnakes can be fixed in software.

This entry was posted on Monday, January 16th, 2012 at 7:00 pm and is filed under tutorials. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

2 Responses to “Move pins on the fly on the Papilio FPGA board”

  1. Hardcore says:

    Actually it is not that simple…..
    Just because you can ‘re-define’ a pin in the VHDL does not mean the design will continue to function correctly.
    This is what separates the two groups of people:

    1. The group that think they can write VHDL because it ‘works’
    2. The group that understand that the logic has to be assigned close to the pins and that the propagation delays need to be kept consistent using placement and routing rules, randomly re-allocating pins can completely destroy a good design.

    It may mean the difference between needing a 500mhz clocked design and being able to accomplish the same with a 100Mhz clock.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • T.O.: For $29 I can get 10 STM32F1 mini boards plus external debugger, free shipping. $0.99 would get me bare microcontroller if I need own board....
  • KH: However innocent it may be, I'm not impressed by the choice made by the creator of the image. Now, I'm not the most politically correct...
  • cyk: A simple google search for "free arm ide" lists CooCox on the first page: http://www.coocox.org/index.html Supports a ton of different ARM M0/3/4 micros and all...
  • Stennly: Despite the popularity of STM32s, it may not be the best place to start. As mentioned already, the Silicon Labs gecko family is cheap to...
  • Pete Juliano: Since this posting on my blog I have received an excellent suggestion on how to quickly disconnect the 48 VDC from the amp so you...