Difference between revisions of "FPGA Workshop"

From Tmplab
(Attendees)
(Undo revision 4961 by Reverse22 (Talk))
 
(24 intermediate revisions by 7 users not shown)
Line 13: Line 13:
 
However, it is still a poorly known subject for most people. Even among the self-proclaimed hardware hacking community, most fanatics of the Arduino <s>development board</s> [http://gizmodo.com/5104149/arduino-+-the-open-source-physical-computing-platform-for-artists-and-engineers open source physical computing platform] do not know that all the functionality of their much-hyped toy comes from an [http://www.atmel.com/products/AVR/ AVR microcontroller chip] that has been being manufactured for years by Atmel. And among those who know, yet fewer people are knowledgeable about the inner working of the AVR microchip; in which <b>computer architecture</b> plays an important role.
 
However, it is still a poorly known subject for most people. Even among the self-proclaimed hardware hacking community, most fanatics of the Arduino <s>development board</s> [http://gizmodo.com/5104149/arduino-+-the-open-source-physical-computing-platform-for-artists-and-engineers open source physical computing platform] do not know that all the functionality of their much-hyped toy comes from an [http://www.atmel.com/products/AVR/ AVR microcontroller chip] that has been being manufactured for years by Atmel. And among those who know, yet fewer people are knowledgeable about the inner working of the AVR microchip; in which <b>computer architecture</b> plays an important role.
  
The reason behind this might be that during decades, computer architecture was reserved to academic lectures and companies who had enough cash to build integrated circuits costing several hundreds of thousands of dollars. This left little room for the individuals, except those who had the guts to [http://www.stevechamberlin.com/cpu/category/bmow1/ wire together hundreds of logic ICs] together. But these amateur systems lag well behind commercial solutions in terms of performance, size, and power consumption.
+
The reason behind this might be that during decades, computer architecture was reserved to academic lectures and companies who had enough cash to build integrated circuits costing several hundreds of thousands of dollars. This left little room for the individuals, except those who had the guts to [http://www.stevechamberlin.com/cpu/category/bmow1/ wire hundreds of logic ICs] together. But these amateur systems lag well behind commercial solutions in terms of performance, size, and power consumption.
  
 
But today's falling costs of powerful FPGAs make it possible for individuals to build complete high-performance computer systems ([http://en.wikipedia.org/wiki/System-on-a-chip System-on-Chips]) from scratch.
 
But today's falling costs of powerful FPGAs make it possible for individuals to build complete high-performance computer systems ([http://en.wikipedia.org/wiki/System-on-a-chip System-on-Chips]) from scratch.
Line 22: Line 22:
  
 
= Prerequisites =
 
= Prerequisites =
 +
* Basic knowledge of Linux commands
 
* Basic knowledge of Verilog HDL (equivalent to the 2 previous workshops)
 
* Basic knowledge of Verilog HDL (equivalent to the 2 previous workshops)
 
* Basic programming practice (knowing how to write a for loop in your favorite language is enough)
 
* Basic programming practice (knowing how to write a for loop in your favorite language is enough)
Line 27: Line 28:
 
= Hardware requirements =
 
= Hardware requirements =
 
* Come with your laptop
 
* Come with your laptop
 +
* Come with beer. The workshop animator runs on beer (Faro, good Kriek from Belgium, Irish Stout, Chimay)
 
* Bring a development board, preferably a [http://www.em.avnet.com/spartan3a-evl Spartan 3A Evaluation Kit ($49)]
 
* Bring a development board, preferably a [http://www.em.avnet.com/spartan3a-evl Spartan 3A Evaluation Kit ($49)]
 
* If you bring another board, you must make sure that:
 
* If you bring another board, you must make sure that:
Line 34: Line 36:
 
*# you can program the FPGA (bring any required JTAG cable)
 
*# you can program the FPGA (bring any required JTAG cable)
 
* If you are unsure if your board is appropriate or not, feel free to send an email to sebastien dot bourdeauducq at lekernel dahht net
 
* If you are unsure if your board is appropriate or not, feel free to send an email to sebastien dot bourdeauducq at lekernel dahht net
* ISE Webpack software and programming tools for your board must be installed before. Installations take a long time that we cannot afford to waste during the workshop. See previous workshop pages for instructions.
+
= Software requirements =
 +
* ISE Webpack software and programming tools for your board must be installed before. Installations take a long time that we cannot afford to waste during the workshop.
 +
* Spartan 3A Evaluation Kit programming tools: [https://www.em.avnet.com/common/filetree/0,2740,RID%253D0%2526CID%253D46501%2526CAT%253D0%2526CCD%253DUSA%2526SID%253D32214%2526DID%253DDF2%2526SRT%253D1%2526LID%253D32232%2526PRT%253D0%2526PVW%253D%2526PNT%253D%2526BID%253DDF2%2526CTP%253DEVK,00.html Avprog (Windows)] [http://code.google.com/p/avs3a/ avs3a (Linux)]
 +
* ISE Webpack: http://www.xilinx.com <b>WARNING: VERY LONG INSTALL!</b>
 +
* If you are on Windows, install [http://www.cygwin.com/ Cygwin] and gmake (GNU Make) (from Cygwin installer)
 +
* Download http://www.milkymist.org/dist/milkymist-0.1.1.tar.bz2 and uncompress it (<code>tar xvjf milkymist-0.1.1.tar.bz2</code>)
 +
* Go to the milkymist-core folder: <code>cd milkymist/milkymist-core</code>
 +
* Type command: <code>BOARD=avnet-sp3aevl ./build_bitstream.sh</code>
 +
* If this completes without error (takes a couple of minutes), you should be ready for the workshop!
 +
 
 +
= Resources =
 +
* Previous workshops' pages: [[Workshop_Introduction_aux_FPGA]] [[FPGA:_la_suite]]
 +
* http://www.milkymist.org/downloads.html
  
 
= Attendees =
 
= Attendees =
Please register yourself by editing this page if you plan to attend.
+
Please register yourself by editing this page if you plan to attend. If you are new to the /tmp/lab, make sure we have a means to contact you back (for example, add your email in your user page).
  
# Lekernel
+
# Le Mono: Lekernel
 
# Yann
 
# Yann
 
# Laura
 
# Laura
Line 45: Line 59:
 
# Laurent
 
# Laurent
 
# Babydock
 
# Babydock
# Dermiste
 
# Phil
 
 
# Kcl
 
# Kcl
 +
# Simone Mannori (INRIA Rocquencourt, project METALAU, http://www.scicos.org, http://www.scicoslab.org)
 +
# Louis
 +
# texane
 +
# Maurin
 +
# Adrien (http://www.lelongdunet.com)
 +
# Jean
 +
# endrazine
 +
# Vincent
 +
# Ladislas

Latest revision as of 21:33, 22 December 2014

  • Titre: FPGA Workshop #3: Computer Architecture
  • Par: lekernel
  • Date: Saturday, August 29th, 2009 ; 14:00 - 23:00
  • Lieu: /tmp/lab

Practical computer architecture made possible for individuals


Introduction

Computer architecture is the science and art of selecting and interconnecting hardware components to create computers that meet functional, performance and cost goals (Wikipedia).

With the invasion of digital devices during the last decade (cellphones, wireless routers, digital TV...), it has become more than ever ubiquitous.

However, it is still a poorly known subject for most people. Even among the self-proclaimed hardware hacking community, most fanatics of the Arduino development board open source physical computing platform do not know that all the functionality of their much-hyped toy comes from an AVR microcontroller chip that has been being manufactured for years by Atmel. And among those who know, yet fewer people are knowledgeable about the inner working of the AVR microchip; in which computer architecture plays an important role.

The reason behind this might be that during decades, computer architecture was reserved to academic lectures and companies who had enough cash to build integrated circuits costing several hundreds of thousands of dollars. This left little room for the individuals, except those who had the guts to wire hundreds of logic ICs together. But these amateur systems lag well behind commercial solutions in terms of performance, size, and power consumption.

But today's falling costs of powerful FPGAs make it possible for individuals to build complete high-performance computer systems (System-on-Chips) from scratch.

This workshop will explore this possibility. After introducing basic computer architecture concepts and practices, we will load a simplified version of the Milkymist System-on-Chip design in the development boards and execute basic programs on it. Then, using Verilog HDL, we will design a simple peripheral for the system-on-chip, integrate it, and test it on the board.

This workshop is for people who want to discover practical computer architecture, and at the same time for those who already know about architecture and want to get an introduction about how to add a peripheral to the open source Milkymist System-on-Chip.

Prerequisites

  • Basic knowledge of Linux commands
  • Basic knowledge of Verilog HDL (equivalent to the 2 previous workshops)
  • Basic programming practice (knowing how to write a for loop in your favorite language is enough)

Hardware requirements

  • Come with your laptop
  • Come with beer. The workshop animator runs on beer (Faro, good Kriek from Belgium, Irish Stout, Chimay)
  • Bring a development board, preferably a Spartan 3A Evaluation Kit ($49)
  • If you bring another board, you must make sure that:
    1. it has a NOR flash chip
    2. you have a tool for writing a raw binary image to that flash chip
    3. it has a serial port that you can use (bring any required null-modem cable, serial adapter, etc.)
    4. you can program the FPGA (bring any required JTAG cable)
  • If you are unsure if your board is appropriate or not, feel free to send an email to sebastien dot bourdeauducq at lekernel dahht net

Software requirements

  • ISE Webpack software and programming tools for your board must be installed before. Installations take a long time that we cannot afford to waste during the workshop.
  • Spartan 3A Evaluation Kit programming tools: Avprog (Windows) avs3a (Linux)
  • ISE Webpack: http://www.xilinx.com WARNING: VERY LONG INSTALL!
  • If you are on Windows, install Cygwin and gmake (GNU Make) (from Cygwin installer)
  • Download http://www.milkymist.org/dist/milkymist-0.1.1.tar.bz2 and uncompress it (tar xvjf milkymist-0.1.1.tar.bz2)
  • Go to the milkymist-core folder: cd milkymist/milkymist-core
  • Type command: BOARD=avnet-sp3aevl ./build_bitstream.sh
  • If this completes without error (takes a couple of minutes), you should be ready for the workshop!

Resources

Attendees

Please register yourself by editing this page if you plan to attend. If you are new to the /tmp/lab, make sure we have a means to contact you back (for example, add your email in your user page).

  1. Le Mono: Lekernel
  2. Yann
  3. Laura
  4. Kiniou
  5. Laurent
  6. Babydock
  7. Kcl
  8. Simone Mannori (INRIA Rocquencourt, project METALAU, http://www.scicos.org, http://www.scicoslab.org)
  9. Louis
  10. texane
  11. Maurin
  12. Adrien (http://www.lelongdunet.com)
  13. Jean
  14. endrazine
  15. Vincent
  16. Ladislas