Introduction to Field Programmable Gate Arrays.ppt
《Introduction to Field Programmable Gate Arrays.ppt》由会员分享,可在线阅读,更多相关《Introduction to Field Programmable Gate Arrays.ppt(56页珍藏版)》请在麦多课文档分享上搜索。
1、Introduction to Field Programmable Gate Arrays,Lecture 3/3CERN Accelerator School on Digital Signal Processing Sigtuna, Sweden, 31 May 9 June 2007 Javier Serrano, CERN AB-CO-HT,Outline,Using FPGAs in the real world Performance boosting techniques. Floating point designs. Powering FPGAs. Interfacing
2、to the outside world. Clock domains and metastability. Safe design and radiation hardness.,Outline,Using FPGAs in the real world Performance boosting techniques. Floating point designs. Powering FPGAs. Interfacing to the outside world. Clock domains and metastability. Safe design and radiation hardn
3、ess.,Reminder: basic digital design,High clock rate: 144.9 MHz on a Xilinx Spartan IIE.,Higher clock rate: 151.5 MHz on the same chip.,6.90 ns,6.60 ns,Buffering,Delay in modern designs can be as much as 90% routing, 10% logic. Routing delay is due to long nets + capacitive input loading. Buffering i
4、s done automatically by most synthesis tools and reduces the fan out on affected nets:,net1,net2,net1,net2,net3,Before buffering,After buffering,Replicating registers (and associated logic if necessary),Producer,Consumer 1,Consumer 2,Consumer 4,Consumer 3,Consumer 1,Consumer 2,Consumer 4,Consumer 3,
5、Producer,Before,After,Retiming (a.k.a. register balancing),Large combinational logic delay,Small Delay,Balanced delay,Balanced delay,Before,After,Pipelining,Large combinational logic delay,Small delay,Before,After,Small delay,Small delay,Time multiplexing,Data In,100 MHz,50 MHz logic,50 MHz logic,50
6、 MHz logic,50 MHz logic,50 MHz logic,50 MHz logic,Data Out,50 MHz,De-multiplexer,Multiplexer,An example: boosting the performance of an IIR filter (1/2),Simple first order IIR: yn+1 = ayn + b xn,Z-1,X,+,b,x,X,a,y,Performance bottleneck in the feedback path,Problem found in the phase filter of a PLL
7、used to track bunch frequency in CERNs PS,An example: boosting the performance of an IIR filter (2/2),Look ahead scheme: From yn+1 = ayn + b xn we get yn+2 = ayn+1 + bxn+1 = a2yn + abxn + bxn+1,Z-1,X,+,x,X,a2,y,ab,X,b,Z-1,+,Z-2,FIR filter (can be pipelined to increase throughput),Now we have two clo
8、ck ticks for the feedback!,Another example: being smart about what you need exactly.,u x v = ux vy uy vx |u x v| = |u| x |v| sin = IcFwd u = Vacc, v = IcFwd,Cross product used as phase discriminator by John Molendijk in the LHC LLRF.,Outline,Using FPGAs in the real world Performance boosting techniq
9、ues. Floating point designs. Powering FPGAs. Interfacing to the outside world. Clock domains and metastability. Safe design and radiation hardness.,Floating point designs,To work in floating point you (potentially) need blocks to: Convert from fixed point to floating point and back. Convert between
10、different floating point types. Multiply. Add/subtract (involves an intermediate representation with same exponent for both operands). Divide. Square root. Compare 2 numbers. The main FPGA companies provide these in the form of IP cores. You can also roll your own.,Format,s: sign. e: exponent. f: fr
11、actional part (b0.b1b2b3b4.bwf-1) Convention: normalized numbers have b0=1,Exponent value:,IEEE-754 standard single format: 24-bit fraction and 8-bit exponent (w=32 and wf=24 in the figure). IEEE-754 standard double format: 53-bit fraction and 11-bit exponent.,Total value:,Some performance figures (
12、single precision),Some performance figures (double precision),Rolling your own. Example:,Ray Andraka, “Hybrid Floating Point Technique Yields 1.2 Gigasample Per Second 32 to 2048 point Floating Point FFT in a single FPGA.” http:/ three of these together and triplicate throughput!,Limited by DSP48 ma
13、x. clock rate in Virtex 4 XCV4SX55-10: 400 MHz. Total throughput: 1.2 Gs/s,Outline,Using FPGAs in the real world Performance boosting techniques. Floating point designs. Powering FPGAs. Interfacing to the outside world. Clock domains and metastability. Safe design and radiation hardness.,FPGA power
14、requirements (1/2),Voltage: different voltage rails: core, I/Os, AUX, SERDES, PLL.Tolerance: typically +/- 5%.Monotonicity: Vcc must rise steadily from GND to desired value (could work otherwise but FPGAs are not tested that way).,FPGA power requirements (2/2),Power-on current. Watch out for PCB cap
15、acitor in-rush current: Ic=C*DV/DT. Slow down voltage ramp if needed. Sequencing: required for old technologies and recommended for new ones. Read datasheet. Example for Virtex-4/5: VCCINT VCCAUX VCCO. Use Supply Voltage Supervisor (SVS) to control sequencing. Power-on ramp time. Devices specify a m
16、inimum and a maximum ramp time. Again, this is how they are tested.,Power solutions,Low Drop-Out (LDO). Linear. Unbeatable for quietness. Inefficient. Switching solutions (some have external clk pins that you can drive at a frequency you can easily filter afterwards) Controller (external FET) Conver
17、ter (built-in FET) Module Multi-rail solutions,Amps,LDO: Be aware - Under-voltage lockout,Problem: LDO with non-monotonic voltage output. Cause: 5V primary supply was powering on at the same time. Caps and 3 LDOs caused the 5V to droop. Result: Primary 5V current-limiter shut it down. LDOs under-vol
18、tage lockout tripped, shutting down the LDO. How can we fix this?,LDO: under-voltage lockout solution,Use SVS to sequence regulators after caps are charged.,LDO: be aware in-rush and current limit,A fast-starting LDO induces a huge in-rush current from charging capacitors (remember Ic=C*DV/DT) LDO e
19、nters current-limit mode due to capacitor in-rush. The transition to current-limit mode causes a glitch. What to do?,LDO: in-rush and current-limit solution,Slow down the ramp time using a soft-start circuit. Reduces V/t which reduces capacitor in-rush current. Regulator never hits current-limit and
20、 stays in voltage mode. Good for meeting FPGA minimum ramp time specs. External or built-in.,Note: in-rush FPGA current during configuration is a thing of the past thanks to the introduction of proper housekeeping circuitry.,How much current is our design consuming?,Insert a small high-precision res
21、istor in series with primary voltage source before the regulator, and measure the voltage drop with a differential amplifier. Below an example from a LLRF board designed by Larry Doolittle (LBNL).,Then compare with the predicted power consumption from your vendors software tool ;),Decoupling capacit
22、ors,Capacitors are not ideal! They have parasitic resistance and inductance:,Decoupling capacitors,Knee frequency in the spectrum of a digital data stream is related by the rise and fall times (Tr) by: Fknee=0.5/Tr (1). We want our Power Distribution System to have low impedance at all frequencies o
23、f interest low voltage variations for arbitrary current demands. Solution: parallel combination of different capacitor values. For more info: Xilinx XAPP623.,(1) Howard W. Johnson, Martin Graham. High Speed Digital Design, A Handbook of Black Magic. Prentice Hall, 1993.,Outline,Using FPGAs in the re
24、al world Performance boosting techniques. Floating point designs. Powering FPGAs. Interfacing to the outside world. Clock domains and metastability. Safe design and radiation hardness.,FPGAs have very versatile connectivity. Example: Xilinx Spartan 3 family.,HSTL,Chip-to-Chip Interfacing: Backplane
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- INTRODUCTIONTOFIELDPROGRAMMABLEGATEARRAYSPPT
