Anda di halaman 1dari 37

Curso: Fundamentos de Ingeniera Elctrica

10%
90%

Parcial #3b ( Resumen )


Breve Introduccin a la Lgica Digital Programable

The Tip of the Iceberg

Tarjeta BASYS 2
( FPGA = XC3S100E-5CP132 )

Encapsulado: XC3S100E-5CP132

1 of
Como obtener el Mayor Beneficio de este Curso y de la Carrera ...?

XX

Parcial #3 ( Resumen )
Tema: Breve introduccin a la Lgica Digital Programable
01. Definitions: Programmable Logic Device ( PLD ), 03
02. How Programmable Logic Works?, 09
03. XILINX Technology - ISE WebPack ( IDE ) Software, 12
04. Software VHDL Code Basics ), 13
05. Digilents BASYS 2 ( $59 )- Development Board, 16
06. Digilents - ADEPT ( BASYS 2 Configuration Software ), 18
07. Digilents NEXYS 2 ( $99 )- Development Board, 19
08. Xilinxs SPARTAN 3E ( $159 )- Development Board, 20
09. Digilents NEXYS 3 ( $119 )- Development Board, 21
10. Digilents ATLYS ( $199 )- Development Board, 22
11. Digilents Pmod Modules ( Available: 40+ ), 23
12. 0 to 9 Counter implementation: Before PLD
After PLD, 30
13. Referencias, 34

2 of XX

01 - Definitions - Programmable Logic Device


Embedded Systems:
A combination of computer hardware and software, and perhaps
additional mechanical or other parts, designed to perform a dedicated
function. In some cases, embedded systems are part of a larger
system or product, as in the case of an antilock braking system in a car.
EXAMPLE: Microwave ovens, cell phones, calculators, digital watches,
VCRs, cruise missiles, GPS receivers, heart monitors, laser printers,
radar guns, engine controllers, digital cameras, traffic lights, remote
controls, bread machines, fax machines, pagers, cash registers,
treadmills, gas pumps, credit/debit card readers, thermostats,
pacemakers, blood gas monitors, grain analyzers, and a gazillion
others.

3 of XX

01 - Definitions - Programmable Logic Device


Embedded Systems ( Continuation )
Of the nine ( 9 ) billion processors manufactured in 2005, less than 2%
became the brains of new PCs, Macs, and Unix workstations. The
other 8.8 billion went into embedded systems. The essence of every
modern electronic device, from toys to traffic lights to nuclear power
plant controllers, these processors help run factories, manage weapon
systems, and enable the worldwide flow of information, products, and
people.
Virtually every electronic device designed and manufactured today is
an embedded system, and virtually no first-world person is untouched
by this technology. In fact, once you start looking for them, we're sure
you can quickly find a few dozen embedded systems in your home
and at least a few on your person.

4 of XX

01 - Definitions - Programmable Logic Device


Analog
A way of representing some physical quantity, such as temperature or
velocity, by a proportional continuous voltage or current. An analog
voltage or current can have any value within a defined range.

Digital
A way of representing a physical quantity by a series of binary
numbers. A digital representation can have only specific discrete
values.

What is a Programmable Logic Device ?


A programmable logic device or PLD is an electronic component used
to build reconfigurable digital circuits. Unlike a logic gate, which has a
fixed function, a PLD has an undefined function at the time of
manufacture. Before the PLD can be used in a circuit it must be
programmed (i. e. reconfigured).

5 of XX

01 - Definitions - Programmable Logic Device


Field-Programmable Gate Array ( FPGA )
A logic chip that has thousands of internal gates and can be
programmed. Abbreviated FPGA. FPGAs are especially popular for
prototyping integrated circuit designs. However, once the design is
finalized, hard-wired chips called ASICs are often used instead for
their faster performance and lower cost.

The internal structure of an FPGA

Application-Specific Integrated Circuit ( ASIC )


A piece of custom-designed hardware in a mass-produced chip.
Abbreviated ASIC.

6 of XX

02 - How Programmable Logic Works?


Moore's Law ( 1965 ) describes a long-term trend in the history of computing
hardware, in which the number of transistors that can be placed inexpensively
on an integrated circuit has doubled approximately every two years.

Gordon Moore

Referencia: INTEL + Wikipedia.org Moores Law

7 of XX

02 - How Programmable Logic Works?

What is SI?

SSI (small-scale integration): 1960+ / Up to 100 electronic


components per chip
MSI (medium-scale integration): 1970- / From 100 to 3,000
electronic components per chip
LSI (large-scale integration): 1970+ / From 3,000 to 100,000
electronic components per chip
VLSI (very large-scale integration): 1980+ / From 100,000 to
1,000,000 electronic components per chip
ULSI (ultra large-scale integration): More than 1 million electronic
components per chip

8 of XX

02 - How Programmable Logic Works?


In recent years, the line between hardware and software has
blurred. Hardware engineers now create the bulk of their new
digital circuitry in programming languages such as VHDL.
Over the past few years, the density of the average programmable
logic device has begun to skyrocket. The maximum number of gates
in an FPGA is currently around 500,000 and doubling every 18
months. Meanwhile, the price of these chips is dropping.
What all of this means is that the price of an individual NAND or
NOR is rapidly approaching zero! And the designers of embedded
systems are taking note. Some system designers are buying
processor cores and incorporating them into system-on-a-chip
(SOC) designs; others are eliminating the processor and software
altogether, choosing an alternative hardware-only design.

9 of XX

02 - How Programmable Logic Works?

As this trend continues, it becomes more difficult to separate


hardware from software. After all, both hardware and software
designers are now describing logic in high-level terms, albeit in
different languages, and downloading the compiled result to a piece
of silicon. Surely no one would claim that language choice alone
marks a real distinction between the two fields.
Both hardware and software designs are compiled from a humanreadable form into a machine-readable one. And both designs are
ultimately loaded into some piece of silicon. Does it matter that one
chip is a memory device and the other a piece of programmable
logic? If not, how else can we distinguish hardware from software?

10 of XX

02 - How Programmable Logic Works?


I'm not convinced that an unambiguous distinction between
hardware and software can ever be found, but I don't think that
matters all that much.
Regardless of where the line is drawn, there will continue to be
engineers like you and me who cross the boundary in our work.
So rather than try to nail down a precise boundary between
hardware and software design, we must assume that there will be
overlap in the two fields.
And we must all learn about new things. Hardware designers must
learn how to write better programs, and software developers must
learn how to utilize programmable logic.

11 of XX

03 - XILINX Technology - ISE WebPack ( IDE ) Software


Software = ISEWebPack 10.1 ( IDE = Integrated Development Environment )

Procedimiento de Instalacin

File: ISE 10.1 - 25 Digit Registration ID.txt

1. ISE WebPack 10.1 Instalation:


- Run: "setup.exe" ( Use Folder Name: 'Xilinx10_1' )
- Product - 25 Digit Registration ID is "184AALFT6MJXSWSEWJ2ZG2XBP"
For: ISE WebPACK 10.1 ( FREE )
Instalation Procedure....
- Step 1: Registration ID: 184AALFT6MJXSWSEWJ2ZG2XBP
- Step 2: Select: Stand Alone Prog. Tools + ISE Design Tools.
- Step 3: Change Directory to: C:\Xilinx10_1\10.1
- Step 4: Remove Option: Virtex 4 and Virtex 5 FPGA Dev.
- Step 5: Remove Option: Launch Xilinx Update + Enable Web Talk
2. ISE 10.1 - Servicepack 1 instalation:
- After installing ISE WebPack 10.1
- Install ISE WebPack 10.1 ServicePack 1 ( See Folder: "_ISE10.1 ServicePack_1" )
- File Name: 10_1_01_win.exe ( Use option: Delete OLD / Back_UP Files )

ISE WebPack - Version 10.1


( Contenido del DVD )

3. Proyecto + Archivos de Circuitos para la tarjeta BASYS2 - See File: _HDL_FIE00.Zip


- Copiar a una carpeta temporal y expandir el archivo Zip.
- Este archivo contiene el Project Folder "HDL_FIE00"
- Colocar la carpeta "HDL_FIE00" y su contenido en la carpeta "C:\Xilinx10_1\"

12 of XX

04 - Software VHDL Code Basics


VHDL is an acronym for VHSIC
(Very High Speed Integrated Circuit) Hardware Description Language

ISE WebPack 10.1 by Xilinx + ADEPT + Tarjeta BASYS 2


( PLD - Proceso de Diseo - Bsico )

( VHDL )

( TBW )

( UCF )

( BIT )

( ADEPT + BASYS2 )

13 of XX

Promote with New Programmers the use & development of: Reusable VHDL Code or IP

04 - Software VHDL Code Basics


VHDL ( VHSIC Hardware Description Language; VHSIC: Very-High-Speed Integrated Circuit ) is a
Hardware Description Language used in electronic design automation to describe digital and mixed-signal
systems such as Field-Programmable Gate Arrays ( FPGA ) and integrated circuits.
Reference: VHDL ( Definition ), From Wikipedia / The free encyclopedia. Available at:
<http://en.wikipedia.org/wiki/VHDL>. Accessed: September 3, 2011

A
B

Y
Or_VHD

1. Library Recursos disponibles...!


Similar a los recursos *.h en Lenguaje C!

2. ENTITY Es una caja negra con I/O!


Define las Entradas y las Salidas (I/O) de la caja!

3. ARCHITECTURE Describe la funcionalidad del I/O.


Describe la relacin entre I/O de la caja !

14 of XX

Promote with New Programmers the use & development of: Reusable VHDL Code or IP

04 - Software VHDL Code Basics


Software Example: OR Gate VHDL Code
1

Smbolo Lgico

Nombre del archivo: OR_VHD.VHD


0

Tabla de la Verdad

15 of XX

Simulacin ( Behavioral Model ) del archivo: orvhd_10TB.tbw

05 - Digilents BASYS 2 ( $59 )- Development Board

Hardware = BASYS2 Board by www.digilentinc.com with Xilinx SPARTAN 3E Chip

Components and Features

Tarjeta de Desarroollo BASYS 2


( FPGA = XC3S100E-5CP132 )

- Xilinx XC3S100E Spartan-3E FPGA


- Up to 108 user-I/O pins
- 132-pin Ball CS package
- Xilinx 2 Mbit Platform Flash configuration PROM
- 4-Digit, 7-Segment Display
- PS/2 mouse or keyboard port
- VGA display port
- On-board USB-based FPGA/CPLD
download/debug interface
- 50 MHz oscillator
- Four Digilent 6-pin expansion connectors
- Four ( 4 ) push-button switches
- Eight ( 8 ) discrete LEDs
- Eight ( 8 ) slide switches

Encapsulado: XC3S100E-5CP132

16 of XX

05 - Digilents - BASYS 2 ( $59 )- Development Board

( XILINX World Wide Leader with 51% of the programmable market solutions )

Encapsulado: XC3S100E-5CP132

Algunos recursos de la BASYS 2

17 of XX

06 - Digilents ADEPT ( BASYS 2 Configuration Software )


Software = ( 1 ) ISEWebPack 10.1 ( IDE = Integrated Development Environment )
+ ( 2 ) ADEPT Ver. 2 by www.digilentinc.com

VOLATIL

ISE WebPack - Version 10.1


NO-VOLATIL

(1)
(2)
(3)
(4)
(5)
(6)
(7)

Programa ADEPT
Utilizado para configurar / programar el
FPGA o la PROM de la BASYS 2

Proyecto HDL_FIE00
( Repositorio_OE: Evaluacin de 7 Circuitos )

18 of XX

07 - Digilents NEXYS 2 ( $99 )- Development Board


( XILINX World Wide Leader with 51% of the programmable market solutions )

Components and Features

19 of XX

08 - Xilinxs SPARTAN 3E ( $159 )- Development Board


( XILINX World Wide Leader with 51% of the programmable market solutions )

Components and Features

Encapsulado: XC3S500E-4FG320

20 of XX

09 - Digilents NEXYS 3 ( $119 )- Development Board


( XILINX World Wide Leader with 51% of the programmable market solutions )

Components and Features

The NEXYX 3 is perfectly suited to the classroom:


New students can build logic circuits without
worrying about complex external interfaces, and
more advanced students can build complete digital
systems, including controllers, CODECs, and
embedded processors.

21 of XX

10 - Digilents ATLYS ( $199 ) - Development Board ( FIE )


( XILINX World Wide Leader with 51% of the programmable market solutions )
The Atlys circuit board is a complete, ready-to-use digital
circuit development platform based on a Xilinx Spartan 6
LX45 FPGA. The on-board collection of high-end
peripherals, including Gbit Ethernet, HDMI Video,
128Mbyte DDR2 memory array, audio and USB ports make
the Atlys board an ideal host for complete digital systems
built around embedded processors like Xilinxs MicroBlaze.

Components and Features

22 of XX

11. Digilents Pmod Modules ( Available: 40+ )


Reference: http://www.digilentinc.com/

PmodBT2 - Bluetooth Interface ($55)

PmodKYPD - 16-Button Keypad ($25)

23 of XX

11. Digilents Pmod Modules ( Available: 40+ )


Reference: http://www.digilentinc.com/

VmodCAM - Stereo Camera Module ($80)

PmodACL - 3-axis Accelerometer ($36)

Tarea / Ver: http://en.wikipedia.org/wiki/Accelerometer

24 of XX

11. Digilents Pmod Modules ( Available: 40+ )


Reference: http://www.digilentinc.com/

PmodCLP - Character LCD,


parallel interface ($35)

PmodGYRO 3-Axis Digital Gyroscope ($38)

Tarea / Ver: http://en.wikipedia.org/wiki/Gyroscope

25 of XX

11. Digilents Pmod Modules ( Available: 40+ )


Reference: http://www.digilentinc.com/

PmodENC - Rotary encoder ($15)

PmodJSTK - Two axis joystick ($35)

26 of XX

11. Digilents Pmod Modules ( Available: 40+ )


Reference: http://www.digilentinc.com/

PmodMIC - Microphone

PmodRF1 - Wireless Radio Transciever ($40)

w/ digital interface ($15)

27 of XX

11. Digilents Pmod Modules ( Available: 40+ )


Reference: http://www.digilentinc.com/

PmodSD - SD card slot ($29)

PmodTMP - Thermometer/thermostat ($25)

28 of XX

11. Digilents Pmod Modules ( Available: 40+ )


Reference: http://www.digilentinc.com/

PmodUSBUART - USB to UART

PmodWiFi - 802.11b/g/n WiFi Interface ($60)

Interface ($20)

29 of XX

12. Before PLD

After PLD ( Parcial #3 PLD )

Contador de 0 @ 9 ( #7 b11 )
Before PLD
Clk+Cnt+Amp+Dec
( 555+7490+7406+7447 )

Circuito en Plantilla de Experimentos o


Prottoboard

After PLD
Circuito ( Smbolo )

Implementacin en el
FPGA de la BASYS 2

30 of XX

12. Before PLD

After PLD ( Parcial #3 PLD )

Oscilador con el 555 ( #5 b05 )


Clk

Before PLD

After PLD

Astable: T = T1 + T2 = 1 Segundo
Circuito ( Smbolo )

Implementacin en el
FPGA de la BASYS 2

31 of XX

12. Before PLD

After PLD ( Parcial #3 PLD )

Contador de 0@9 con el 74LS90 ( #6 b08 )


Before PLD

After PLD
Circuito ( Smbolo )

To 74LS47 & 7406

Counter

(8)
(4)

Contador - Tabla Funcional

(2)
555 Clk Input ( 1Hz )
(1)

Implementacin en el
FPGA de la BASYS 2

32 of XX

12. Before PLD

After PLD ( Parcial #3 PLD )

BCD to 7-Segment Decoder 74LS47 ( #4 b05 )


AL 7406

Before PLD

After PLD
Circuito ( Smbolo )

(2)
(3)

(4)
(1)

BCD Input
( Counter )

SW #

0 ( Digito )

Decoder
Digito 3, 2,1, 0

AL 74LS90

Implementacin en el
FPGA de la BASYS 2

33 of XX

13. Referencias
1. PLD Manufacturer: XILINX Web site - main page, Available at: < http://www.xilinx.com/ >,
Accessed: Sept 03, 2011.
2. Xilinx IDE software ISE WebPack 10.1 - Download ( Free ), Available at:
< http://www.xilinx.com/support/download/index.htm>, Accessed: Sept 03, 2011.
3. Academic Kits Manufacturer & vendor: Digilent Inc. Web site main page, Available at:
< http://www.digilentinc.com/>, Accessed: Sept 03, 2011.
4. Tarjeta BASYS 2 Precio Unitario en USA: $59.00 ( Con descuento academico ), Disponible en:
< http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,400,790&Prod=BASYS2>,
Consultado: Sept 03, 2011.
5. Tarjeta NEXYS 3 Precio Unitario en USA: $119.00 ( Con descuento academico ), Disponible en:
< http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,400,897&Prod=NEXYS3>,
Consultado: Sept 03, 2011.
6. Software ADEPT 2 by Digilent Inc.( Free ), Available at:
< http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,66,828&Prod=ADEPT2>,
Consultado: Sept 03, 2011.
7. Pmod: PmodACL - 3-axis Accelerometer by Digilent Inc. Unit Price ( USA = $36), Available at:
< http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,401,899&Prod=PMOD-ACL>,
Consultado: Sept 03, 2011.

34 of XX

13. Referencias
8. Pmod: PmodRF1 - Wireless Radio Transciever by Digilent Inc. Unit Price ( USA = $40),
Available at: < http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,401,811&Prod=PMODRF1>, Consultado: Sept 03, 2011.
9. Find PLD & VHDL - Basics & Reference DATA, at Curse: Digital Logic and Microprocessor Design.
Available at: < http://www.cse.secs.oakland.edu/haskell/CSE378/CSE_378W07_main.htm >
Accessed: Sept 03, 2011.
10. Homework - Article / Video: The Picture for Kodak Is Not Pretty
Available at: < http://finance.yahoo.com/blogs/daily-ticker/picture-kodak-not-pretty-161831444.html >
Accessed: Oct 04, 2011.

Validacin para el Descuento Acadmico

Para mas informacin: Ver Archivo / DATA suministrada35

of XX

10%
90%

The Tip of the Iceberg

Como obtener el Mayor Beneficio de este Curso y de la Carrera ...?


( La importancia de Aprender a Aprender )

This subject will continue !


36 of XX

Curse: FIE / Brief introduction to MCU Evaluation Kit ( Sample )


Freescale ( Motorola ) - SABRE platform for tablets based on i.MX53 processor available now:
Smart Application Blueprint for Rapid Engineering ( SABRE) platform for tablets based on the i.MX53
applications processor is now shipping. This market-focused development system is Wi-Fi enabled and
ships with Android pre-installed. With a large 10.1-inch 1024x768 display with capacitive touch
interface, this development system is ideal for evaluating the multimedia capabilities of the i.MX53
applications processor. SABRE platforms deliver the advanced technology features required for your market's
next-generation, applications including tablets, eReaders and automotive infotainment systems. Order
through your local distributor or Freescale ( See Video). Product description and video available at:
< http://www.freescale.com/webapp/sps/site/overview.jsp?code=SABRE_HOME&tid=NL_3711 >

SABRE platform for tablets based on the i.MX53


family of multimedia applications processors

IMX53QSB: i.MX53 Quick Start Board

IMX53_QSB: i.MX53 Quick Start Board by Freescale ( Motorola ). Unit Price = $150 ( USA ) - This is a
limited time offer ( See Video ). Product description and video available at:
< http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX53QSB&tid=NL_3711>,
Accessed: Sept 14, 2011.

37 of XX