Electronics in High Energy Physics Winter Term: Introduction to Electronics in HEP Field Programmable Gate Arrays... Programmable Logic• Programmable digital integrated circuit • Standar
Trang 1Electronics in High Energy Physics
Winter Term: Introduction to Electronics in HEP
Field Programmable Gate Arrays
Trang 2Part 2
– Introduction – Examples
• Design Flow
– Entry Methods – Simulation
– Synthesis – Place & Route
Trang 3Programmable Logic
Trang 4Programmable Logic
• Programmable digital integrated circuit
• Standard off-the-shelf parts
• Desired functionality is implemented by configuring
on-chip logic blocks and interconnections
• Advantages (compared to an ASIC):
– Low development costs
– Short development cycle
– Device can (usually) be reprogrammed
• Types of programmable logic:
– Complex PLDs (CPLD)
–
Trang 5Architecture and Examples
Trang 6PLD - Sum of Products
C B A C
B A
f1 = • • + • •
C B A B
A
f2 = • + • •
Programmable AND array followed by fixed fan-in OR gates
Programmable switch or fuse
Trang 8CPLD Structure
Integration of several PLD blocks with a programmable interconnect on a single chip
PLD Block
PLD Block Block PLD
PLD Block
PLD Block Block PLD
PLD Block
Trang 9Stefan Haas, 1 F
eb 2005
CPLD Example - Altera MAX7000
EPM7000 Series Block Diagram
Trang 10CPLD Example - Altera MAX7000
EPM7000 Series Device Macrocell
Trang 11FPGA Architecture
Trang 12FPGA - Generic Structure
FPGA building blocks:
• Programmable logic blocks
Implement combinatorial and
sequential logic
• Programmable interconnect
Wires to connect inputs and
outputs to logic blocks
• Programmable I/O blocks
Special logic blocks at the
periphery of device for external
Trang 13– DSP blocks:
• Hardware multipliers, adders and registers
– Embedded microprocessors/microcontrollers – High-speed serial transceivers
Trang 14FPGA – Basic Logic Element
• LUT to implement combinatorial logic
• Register for sequential circuits
• Additional logic (not shown):
– Carry logic for arithmetic functions
– Expansion logic for functions requiring more than 4 inputs
LUT
Out Select
A B C D
Trang 15Stefan Haas, 1 F
eb 2005
Look-Up Tables (LUT)
• Look-up table with N-inputs can be used to implement any
combinatorial function of N inputs
• LUT is programmed with the truth-table
LUT
A B C D
Z
A B
C D
Z
Truth-table Gate implementation
LUT implementation
Trang 16X1 X2
X3
F
Configuration memory
cells
Trang 17Stefan Haas, 1 F
eb 2005
Programmable Interconnect
• Interconnect hierarchy (not shown)
– Fast local interconnect
– Horizontal and vertical lines of various lengths
Matrix Switch Matrix
Trang 18Switch Matrix Operation
• 6 pass transistors per switch
matrix interconnect point
• Pass transistors act as
programmable switches
• Pass transistor gates are driven
After Programming Before Programming
Trang 19– Eliminate clock skew between external clock input
and on-chip clock
– Low-skew global clock distribution network
Trang 20Configuration Storage Elements
• Static Random Access Memory (SRAM)
– each switch is a pass transistor controlled by the state of an SRAM bit
– FPGA needs to be configured at power-on
• Flash Erasable Programmable ROM (Flash)
– each switch is a floating-gate transistor that can be turned off by
injecting charge onto its gate FPGA itself holds the program
– reprogrammable, even in-circuit
• Fusible Links (“Antifuse”)
– Forms a forms a low resistance path when electrically programmed – one-time programmable in special programming machine
– radiation tolerant
Trang 21Example: Altera Stratix Series
Trang 22Floorplan
Trang 23Stefan Haas, 1 F
eb 2005
Logic Element
Trang 24Logic Array Block (LAB)
• LAB regroups 10 logic
elements with a fast
local interconnect
• Interconnect structure
– Direct link between LABs
and adjacent blocks
Trang 26Example: Xilinx Virtex-II Pro
Trang 28Logic Slice Architecture
• Two 4-input LUT, can also
be used as:
– 16-bit synchronous RAM
– 16-bit shift register
• Two flip-flops/latches
• Carry logic for arithmetic
circuits (e.g adder)
• Fast width expansion logic
– Implement logic functions with
more than 4 inputs
Trang 29• Connections for carry
logic and shift register
mode
Trang 30Xilinx: Embedded Multipliers
Trang 31Stefan Haas, 1 F
eb 2005
Altera: Embedded DSP Blocks
Trang 32Altera: Embedded DSP Block
Trang 33Stefan Haas, 1 F
eb 2005
3.125 Gb/s per pair
32b @
Virtex-II Pro Virtex-II Pro
Xilinx: Rocket I/O
Virtex 4: 11.1 Gbps !!!
Trang 34FPGA Vendors & Device Families
version for cost-critical applications
• QuickLogic
– ViaLink-based FPGAs
Trang 35– Lower cost per function (LUT + register)
– Smaller and faster transistors: Higher speed
• System speed up to 500 MHz
– Mainly through smart interconnects, clock management, dedicated circuits, flexible I/O
– Integrated transceivers running at 10 Gigabits/sec
• More Logic and Better Features:
– >100,000 LUTs & flip-flops
– >200 embedded RAMs, and same number 18 x 18 multipliers
• 1156 pins (balls) with >800 GP I/O
– 50 I/O standards, incl LVDS with internal termination
• 16 low-skew global clock lines
– Multiple clock management circuits
• On-chip microprocessor(s) and multi-Gbps transceivers
Trang 36Latest Devices: Capacity & Features
Trang 37Electronics in High Energy Physics
Winter Term: Introduction to Electronics in HEP
Field Programmable Gate Arrays