ece1756_lecture3_part1_2026_compute_models_continued
Overview
The lecture explains how streaming dataflow designs can exploit FPGA registers and how retiming, synchronous resets, and time-domain multiplexing improve timing or hardware efficiency. It distinguishes latency-preserving retiming from adding pipeline stages, then shows how C-slow retiming uses multiple independent streams to pipeline loop-carried computations without changing each stream’s behavior. Administrative notes preview a paper comparing processor and streaming compute models on the same FPGA and announce Assignment 1’s planned update for Intel Quartus and Agilex devices.
Key takeaways
- FPGA pipelining is especially attractive because registers are plentiful and programmable interconnect is slow, although very deep pipelines can eventually become register-limited.
- Retiming differs from repipelining: it moves existing register boundaries without changing input-output latency, allowing CAD tools to optimize timing safely.
- Recent Quartus flows can retime at multiple stages because delay estimates improve from logic mapping through placement and routing, while late changes become more disruptive.
- Synchronous resets simplify both timing analysis and retiming; asynchronous resets require careful synchronization and constraints to avoid inconsistent reset behavior.
- Time-domain multiplexing can share a fast 400 MHz operator across two 200 MHz streams by carrying a stream ID through the pipeline.
- C-slow retiming uses C interleaved streams and C copies of registers to improve loop clock rate and aggregate throughput, but it does not speed up an individual stream.
Chapters
- Next week’s reading will include one paper with a questionnaire and a second paper for discussion, focused on streaming hardware versus processor execution.
- The comparison implements both compute models on the same FPGA to isolate the effect of the compute model.
- Assignment 1 is being updated for Intel Quartus and Agilex devices, with licensing and tool setup still being checked.
- Inelastic pipelines use simple registers between computations, while elastic pipelines add valid signals, back pressure, and FIFOs.
- A design can use inelastic pipelines inside operators and elastic dataflow between larger blocks.
- Both styles suit FPGA workloads with repeated computations and frequent data movement.
- FPGA logic blocks contain plentiful pre-fabricated registers, making moderate amounts of pipelining relatively inexpensive.
- Programmable interconnect adds delay compared with ASIC metal wiring, increasing the value of breaking long critical paths into stages.
- A critical path is the longest path between registers in a clock domain, and its delay sets the minimum clock period.
- Adding pipeline registers in RTL requires preserving balanced input latency and avoiding illegal changes to loop-carried dependencies.
- A valid directed cut can identify where registers may be inserted without breaking the dataflow computation.
- An example with one LUT before a register and several LUTs after it shows how a legal pipeline can still have unbalanced delays.
- Retiming shifts registers across logic to balance timing while preserving the design’s input-output behavior and cycle latency.
- Moving a register across a logic block may require placing registers on multiple fan-out paths to preserve the cut.
- Balancing an example path from 2 ns and 6 ns sections to roughly 4 ns each raises the possible clock rate from about 167 MHz to 250 MHz.
- Retiming is safe for automatic optimization because it preserves behavior observed at the design’s inputs and outputs, including latency.
- Quartus can retime after logic mapping, placement, and routing as estimates of LUT and interconnect delay become more accurate.
- Early retiming is easier to apply but has limited delay information; late retiming has better information but may disrupt placement and require routing changes.
- A designer can add pipeline registers in reasonable locations and rely on the CAD tool to fine-tune their placement through retiming.
- Putting multiple registers at a module’s input is an easy way to add latency, but it relies more heavily on imperfect CAD optimization.
- Retiming is enabled by default in recent Quartus flows, and FPGA architectures’ growing register counts make it increasingly useful.
- A proper retimer preserves the number of registers around a loop and will not move a register from outside a loop into it in a way that changes loop latency.
- Engineers may disable retiming during hardware debugging because moved registers no longer correspond clearly to the names and logic in the RTL.
- Retiming can duplicate registers across fan-outs or merge registers when moving cuts, so register count may increase or decrease.
- A synchronous reset takes effect on a clock edge and is easier for timing analysis and retiming than an asynchronous reset.
- The recommended FPGA practice is to use synchronous resets; the Assignment 1 sample code follows that approach.
- Asynchronous reset behavior can be difficult to constrain, and an unsafe reset may leave a design working inconsistently after reset.
- An asynchronous clear changes flip-flop state independently of the clock, so a transition near a clock edge can reset some registers but not others.
- Safe asynchronous reset use requires synchronizing the reset to a clock and correctly constraining its timing.
- Asynchronous resets also make retiming harder because the CAD tool must preserve more complicated reset behavior.
- If an operator runs at 400 MHz while its input streams run at 200 MHz, one copy of the operator can serve two streams instead of duplicating the hardware.
- A stream ID travels alongside data through FIFOs and pipeline stages, allowing output data to be routed back to the correct stream.
- The technique applies both to large IP blocks and to fast FPGA DSP blocks, including double-pumped multipliers.
- Adding a register to a loop can change its recurrence from using the previous result to using a result from two cycles earlier, breaking the original computation.
- Interleaving two independent streams lets each stream provide a new input every other cycle, matching a loop latency doubled from one cycle to two.
- The loop can run at about twice the clock rate and process two streams, though the throughput of an individual stream does not increase.
- C-slow retiming replaces each register in a chosen block with C registers and interleaves C independent input streams.
- The added registers must be redistributed across logic by hand or by CAD retiming to break up long paths, especially around loops.
- For small C values such as 2, 3, or 4, the loop may approach C times its original clock rate while processing C streams at roughly their former per-stream rate.
- C-slow retiming changes latency, so the chosen pipeline cuts must be valid; its main benefit is more aggregate throughput across independent streams.
- Stream IDs are safer than cycle-counting control logic for routing results because latency changes do not invalidate the tag carried with the data.
- Distributed control using valid signals, back pressure, and stream IDs helps keep larger dataflow accelerators composable as pipelines change.
Transcript excerpt
0:00 everybody. Uh let's see. So I'll start with a little bit of administrative stuff. Okay. So what we're talking about is uh Okay. So today we're continuing to talk about how to organize hardware with compute models. So we talked about kind of half of that last uh last week. We'll finish it off today. And then next week we're going to start comparing FPJs to some other compute devices. uh what are the the strengths and uh weaknesses? Um so I'll assign I think would you rather read one paper or two papers for next week? Uh let's take a vote. We see maybe okay how many people want one paper for next week? Okay. How many people want two papers for next week?
0:47 >> Uh one paper to answer questions on a second. >> Okay, that's fair enough. Okay. So I think I we'll do that. So, because there's a second one. Yeah, I was thinking between one and two. It looks like the tribe has spoken. I mean, it's pretty clear nobody wanted two questionnaires. Fine. One that is a questionnaire, another that I'll post that you can read and we'll discuss. Okay. So, that seems fair. Um, okay. So, I anticipated your answer, so I only put one on here, but I'll uh so I did have an inkling, although I was like, maybe people were like, "No, so assign me lots of papers. I want to be uh pushed to read lots." Um, okay. So what what is this reading? This reading is part of how we're going to look at how how efficient are FPJAS versus other devices. And there's no one answer like it depends on exactly what your application is and what compute
1:36 model you need. So I'll give you like a
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.