Announcements: - Lab 1 Due in One Week
Announcements: - Lab 1 Due in One Week
CSE372
Digital Systems Organization and Design
Lab
Questions/comments?
Testbench coming soon (according to the TAs)
Todays lecture:
How FPGAs work
Advantages
Simplicity of gate-level design (no transistor-level design)
Fast time-to-market
No manufacturing delay
Can fix design errors over time (more like software)
Disadvantages
Expensive: unit cost is higher
Inefficient: slower and more power hungry
Not to scale
CSE 372 (Martin): FPGAs
Synthesis
Goals:
Reduce latency (performance)
Reduce area (cost)
Reduce power (performance and/or cost)
CSE 372 (Martin): FPGAs
Cin S
A B Cin
1. AND combinations
that yield a "1" in the
truth table
S
2. OR the results
of the AND gates
An
Bn
A B Cin S Cout
CarryInn
1
Add
Sn
CarryOutn
0 0
0 0
0 1
0 1
cin
1 0
1 0
a
b
1 1
1 1
An
Bn
Sn
Add
CarryOutn
t1
t2
cout
t3
10
Switch
Programming
Each pass gate controlled by 1-bit flip-flop
0/1 value of flip-flop set at configuration
Programmable interconnect
Pass Gate
11
12
More Wires
IBM
IBM
On-Chip Wires
13
14
A Better FPGA
Replace gates with general CLB
cin
a
b
s
cout
15
CLB
CLB
CLB
CLB
CLB
CLB
16
Two flip-flops
Fast carry logic (direct connect from adjacent CLBs)
LUTs can be be configured as RAM:
2x16 bit or 1x32 bit, single ported
1x16 bit dual ported
Routing
Short and long wires (skip some CLBs)
Clocks have dedicated wires
17
18
19
20
21
22
23
24
Switch Matrix
25
Viertex-2 Pro
XC2VP30
Routing resources
26
27
30,816 CLBs
136 18-bit multipliers
2,448 Kbits of block RAM
Two PowerPC processors
400+ pins
28
Downside of configurability
Wires are much slower on FPGAs
Logic is much slower on FPGAs
29
30