Teaching Programmable Logic to Programmers

Posted by: Dave Vandenbout 6 years, 9 months ago

(1 comment)

PyOhio and MyHDL logos Teaching programmers how to use programmable logic like FPGAs: you would think that was easy, right? Chris Felton recently gave a workshop at PyOhio to do just that. The intent was to help programmers learn FPGA programming techniques using the MyHDL Python package. To support his workshop, Chris put together a complete hardware and software setup for the programmers that consisted of:

  • A VirtualBox VM with the Xilinx ISE FPGA tools and MyHDL preloaded so it could just be dropped onto the attendees' laptops.
  • A set of XESS XuLA-200 FPGA boards plugged into StickIt! boards that could be connected to the laptop USB ports to provide a complete FPGA hardware testbed for each programmer.
  • A set of FPGA hardware testbeds made up of XESS XuLA-200 FPGA boards plugged into StickIt! boards that connect to the USB ports of the programmers' laptops.
  • Two "Hello, World!" examples written with MyHDL: one for blinking an LED with a pushbutton, and a second variation that registers the LED using a flip-flop.

So how'd it work? Well, unfortunately Chris ran into some unexpected problems:

  • The entire workshop was only one hour long.
  • The programmers wanted to run all the tools natively on their laptops instead of using the VM, so this ate up some time doing installations.
  • Once installed, more time was consumed configuring the licenses required by the Xilinx FPGA tools.
  • Finally, although Chris had checked for this problem on multiple OSes beforehand, the programmers' laptop USB ports had "permission denied" issues that blocked their access to the FPGA hardware.

So the programmers didn't get to experience as much fun programming FPGAs as Chris intended, but that doesn't mean you can't! Chris put his PyOhio tutorial for learning about programming FPGAs on bitbucket.org so you can go through it at your own pace. Even if you already have experience with the VHDL/Verilog design flows for FPGAs, you'll appreciate the integration of MyHDL with the rest of the Python ecosystem and the powerful simulation capabilities that makes possible.

Current rating: 3.5


  • Hellwig Geisse 6 years, 6 months ago

    Teaching programmable logic to programmers is surprisingly difficult. I have to do this every other year in my course "Hardware for Embedded Systems". The difficulty seems to rise with the experience the students have as programmers. My guess is that the mental model they developed does not fit. Programmers are trained to find step-by-step solutions to programming problems ("first do this, then repeat that until this condition is met, next call that function, and when it returns ..."), but obviously hardware is parallel: all flip-flops are changing state at the same time. I suspect that a one hour workshop is way too short to get the concept of hardware concurrency into the heads of seasoned programmers... ;-)

    Link / Reply

New Comment

required (not published)

Recent Posts






RSS / Atom