ECE1756 lecture10 part 2 2026 DSP and other blocks
Overview
Vaughn Betz explains how FPGA architects decide which functions to harden, weighing logic savings and speed against the cost of supporting multiple configurations and connecting wide interfaces to programmable routing. Examples include DSP multipliers and FIR filters, Altera tensor units that trade flexibility for efficient INT8 dot products, and PCI Express hard blocks whose 256-bit interfaces must be distributed across routing channels.
Key takeaways
- A hard block's net value depends on more than its gate-area advantage: architects must include configuration support, routing ports, and how many customers will use it.
- DSP multiplier arrays are good hardening candidates because their n² computation requires only about 2n input bits and a 2n-bit output, keeping computation large relative to interface cost.
- Fracturing an 18×18 multiplier into four independent 9×9 multipliers doubles input demand from 36 to 72 bits, so practical DSP blocks may expose fewer operations or share operands.
- Altera tensor units reduce an otherwise impractical 480-bit input interface for 30 independent INT8 multipliers by specializing for three 10-element dot products and operand reuse; reported application speedups were 5× and 3.5×.
- An ×8 PCIe Gen 3 link needs a 256-bit interface at 250 MHz in each direction, so its hard block must distribute connections across many routing channels instead of concentrating them in a hotspot.
- Short interposer links between GPU dies can use single-ended source-synchronous signaling and simultaneous bidirectional transmission, unlike longer-reach PCIe links that rely on differential serial signaling.
Chapters
- Soft PCI Express IP can be parameterized so Quartus or Vivado implements only the selected protocol generation in FPGA LUTs and RAMs.
- A hard implementation must include supported generations and variants, typically using multiplexers and configuration SRAM to select among them.
- Compare hard-IP area, power, and speed with soft IP, including routing-port overhead and the expected share of customers who use the feature.
- Hardening becomes attractive when use is widespread: a roughly 20x logic-area advantage can outweigh the cost of supporting multiple variants.
- An n-bit by n-bit multiplier uses roughly n² logic because it forms partial products and adds shifted rows, much like pencil-and-paper multiplication.
- A multiplier has 2n input bits and a 2n-bit output, so its computation grows faster than its interface width.
- That high computation-to-routing ratio makes multipliers good candidates for DSP hard blocks, with less risk that routing ports erase the area savings.
- An 18×18 multiplier contains a partial-product array and cascaded adders; cutting carry and sum propagation can expose smaller multipliers.
- Four independent 9×9 multipliers would require 72 input bits, twice the 36 inputs of one 18×18 multiplier, making routing-port cost significant.
- Architects can limit the block to two independent 9×9 operations or share inputs to control interface growth.
- The right configuration depends on demand: 9×9 arithmetic is useful in video processing and machine learning, while 18×18 operations serve applications such as wireless and radar.
- FIR filters implement one-dimensional convolution, using multipliers, additions, and delays; symmetric coefficients can reduce multiplication needs by combining input samples first.
- Stratix IV DSP blocks can provide the multiply-accumulate operations, registers, and dedicated connections needed for a filter with almost no ALM logic.
- A measured asymmetric filter used slightly fewer than seven DSP blocks; a logic-only version took nearly 6,000 ALMs and about four times the area.
- When coefficients can change at runtime, logic synthesis has fewer optimization opportunities: the logic implementation grew to about eight times the DSP area and ran at roughly 40% of its speed.
- Early Xilinx DSP blocks used 18×18 multipliers; Altera added multiplier fracturing and multiply-accumulate support for filtering workloads.
- Xilinx added an independently usable ALU in some generations, partly to support soft processors, while Altera did not adopt the same feature.
- Altera added floating-point support in Arria 10 after finding that some customers preferred easier floating-point design over the efficiency of fixed-point arithmetic.
- Later devices added formats such as FP16 and additional fixed-point precisions, reflecting demand for flexible arithmetic in machine learning.
- Altera's newer tensor-capable DSP blocks target machine learning, fitting 30 INT8 multipliers or 60 INT4 multipliers where a conventional block supported two 18-bit multipliers.
- Thirty independent 8×8 multipliers would need 480 input bits and produce 480 output bits, far beyond the existing block's 96 inputs and 72 outputs.
- The block instead groups the multipliers into three 10-element dot products, summing products to reduce output demand and adding accumulators for sums across cycles.
- This specialization supports matrix-multiplication patterns but sacrifices the freedom to use every multiplier independently.
- Broadcasting one shared INT8 vector across three dot-product units reduces repeated inputs, though the design still needs about 320 input bits.
- A register network loads other operands over multiple cycles while the dot-product units continue computing, reducing the interface to about 80 inputs.
- These reuse and scheduling constraints can provide 15 times as many INT8 operations as the original 18-bit configuration, but require computation to be restructured for the block.
- Betz's group reported 5× speedup for an HPIPE CNN accelerator and 3.5× for an NPU; the NPU also used small batches of three to improve weight reuse.
- Source-synchronous links such as DDR send a clock alongside data and suit shorter distances; serial links such as PCI Express and Ethernet suit longer, high-bandwidth connections with fewer wires.
- PCI Express uses differential signaling and clock-data recovery: the receiver derives timing from transitions in the incoming stream instead of receiving a separate clock.
- The receiver deserializes the fast bitstream, then digital protocol logic decodes it; PCI Express Gen 3, for example, used 8b/10b encoding to ensure sufficient transitions.
- FPGA transceiver circuitry handles the highest-speed operations, while configurable hard logic and multiplexers support different protocol generations and serial standards.
- PCI Express protocol processing can require tens of thousands of LUTs and flip-flops after high-speed data is deserialized, making it a substantial soft-logic load.
- Hard logic can be around 20 times smaller than programmable logic and may run fast enough to use a narrower internal bus, providing an additional area reduction.
- PCI Express is widely used and its demand is durable, while supporting multiple generations and options adds multiplexing and area overhead.
- The earliest FPGA generations made the hardening decision less obvious; the block's size, speed requirements, and broad adoption later made the case compelling.
- PCIe Gen 3 runs each lane at 8 Gb/s; an ×8 link therefore carries 64 Gb/s in each direction.
- At a 250 MHz FPGA fabric clock, matching that bandwidth requires a 256-bit interface in each direction after deserialization.
- A typical logic block has about 30 inputs and 20 outputs, while the PCIe interface has 256 of each, creating much higher routing demand.
- A hard block with such a wide interface cannot connect through only one or two routing channels without creating a congestion hotspot.
- To make a PCIe block behave more like ordinary logic, distribute its interface across roughly 13 routing channels, based on about 20 outputs per channel.
- The FPGA architect must plan the block's physical shape and routing connections; Quartus knows the locations of its ports when placing and routing the design.
- Routing congestion grows gradually rather than at a sharp threshold, but a block that stresses channels several times more than ordinary logic can make routing and CAD work substantially harder.
- Interface width can constrain a hard block's placement and shape even when its raw area and logic efficiency look favorable.
- Betz contrasts PCIe's long-reach differential serial links with short-reach connections between NVIDIA Blackwell GPU dies on a silicon interposer.
- The interposer places the dies close enough to use single-ended, source-synchronous signaling rather than conventional differential serial transceivers.
- The described interface sends and receives simultaneously on the same wire; each end subtracts its own known transmitted signal to recover the signal from the other end.
- Betz cites signaling in the approximate 25 to 50 GHz range, illustrating how chiplet distance can enable different bandwidth and wiring tradeoffs.
Transcript excerpt
0:00 We missed my I missed my target. Let's get going. Um, okay. So, that was that was Rams. We're going to talk about some other hard blocks, but not in quite as much detail. So, the next most important uh well, so after you get past Rams and get into like, well, what other hard blocks might we do? How do we evaluate that? So, um, the best way to evaluate it is well, you have some idea. Maybe I should harden the following block. So, let's take PCI Express. Okay, so big protocol block that lots of FBJs have. It's the IO protocol you can do it. You you know you need your IO's to have some configurability and some high-speed circuitry. So you have to have that. PCIe is pretty fast. So you you need to make sure IO's can handle it. But after that there's a bunch of different protocol layers that you could do in soft logic right in the lets plus RAM you can do it. Um and what normally
0:49 happens is for some new protocol it actually initially is done in the soft logic. So you develop IP because you don't want all your end users to have to do this. Uh if you don't have IP, they have to do it. But you develop some IP. Then IP is normally parameterized. So you basically say, well, what exact variant? Let's say a PCI Express. What exact variant do I want? um and you you either write all that RTL or you have some generator that can configure your RTL and can implement for example the protocol stack of PCI Express and there are many variations again I'm using that example there were there now five generations of PCI Express so I'm just showing the first
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Vaughn Betz.