Lecture11 FPGA
Lecture11 FPGA
edu/~eecs151
EECS151/251A
Introduction to Digital Design and ICs
Lecture 11: FPGA Sophia Shao
Intel’s Altera Acquisition
On June 1, 2015, Altera and Intel announced that Intel would acquire
Altera in an all-cash transaction valued at approximately $16.7 billion.
+4
Add
Add
+4 pc+4 2
wb pcX
DataD alu 1
Reg[rs1]
alu Inst[11:7]
1 0 wb
PC AddrD
addr
addr Inst[19:15] LD
0 DataR
inst
inst AddrA DataA
pc+4
Inst[24:20]
Branch + addr X
Comp aluM
AddrB DataB 0 ALU mem
clk DataW
IMEM
IMEM Reg [ ] 1 DMEM
clk clk
Imm. Imm
Gen [31:0]
Forwarding logic
PC updated reflecting
branch outcome
4 EECS151 L11 FPGA Shao Fall 2022 © UCB
Observation
• If branch not taken, then instructions fetched sequentially after branch are
correct
• If branch or jump taken, then need to flush incorrect instructions from pipeline
by converting to NOPs
Taken branch
beq t0, t1, label
Convert to NOP
sub t2, s0, t5
Convert to NOP
or t6, s0, t3
Taken branch
beq t0, t1, label
…..
9 EECS151 L11 FPGA Shao Fall 2022 © UCB Nikolić, Shao Fall 2019 © UCB
• FPGA
• Overview
• Key Configurable Resources
• Configurable Logic Blocks (CLBs)
• Look-Up Tables
• Slices
• Configurable Interconnect
• BRAM, DSP, and AI Engine
• Configurable Interconnect
• Connecting CLBs together
Virtex Ultra-scale
... or as two
5-input LUTS
(D6 and D5)
Combinational
logic
(post configuration)
Four Flip-Flops
Two 7-LUTs
Extra MUX
(F7AMUX, F7BMUX)
Extra inputs
(AX and CX)
Third MUX
(F8MUX)
Third input
(BX)
Combinational
or registered outs.
We can map
ripple-carry addition onto
carry-chain block.
• More recently
• UltraRAM in UltraScale+ devices
• 288Kb
Xilinx Datasheet
OP
Z-1 MULT Z
-1
CTL ADD Z-1
Z-2
Efficient implementation of multiply, add, bit-wise logical. Xilinx Resource
35 EECS151 L11 FPGA Shao Fall 2022 © UCB
AI Engine
• Versal AI Core
Xilinx
HotChips’2019
36 EECS151 L11 FPGA Shao Fall 2022 © UCB
State-of-the-art Xilinx FPGA Platform
• Versal (ACAP: Adaptive Compute Acceleration Platform)
AI Engine
Xilinx
HotChips’2019