Lecture 16 RC Architecture Types & FPGA Interns Lecturer: Simon Winberg.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

FPGA (Field Programmable Gate Array)
Lecture 11-1 FPGA We have finished combinational circuits, and learned registers. Now are ready to see the inside of an FPGA.
Lecture 13: Sequential Circuits
컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
ECE 506 Reconfigurable Computing ece. arizona
Spartan-3 FPGA HDL Coding Techniques
Reconfigurable Computing (EN2911X, Fall07) Lecture 04: Programmable Logic Technology (2/3) Prof. Sherief Reda Division of Engineering, Brown University.
1 ITCS 3181 Logic and Computer Systems B. Wilkinson Slides9.ppt Modification date: March 30, 2015 Processor Design.
التصميم المنطقي Second Course
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
The 8085 Microprocessor Architecture
EELE 367 – Logic Design Module 2 – Modern Digital Design Flow Agenda 1.History of Digital Design Approach 2.HDLs 3.Design Abstraction 4.Modern Design Steps.
Spartan II Features  Plentiful logic and memory resources –15K to 200K system gates (up to 5,292 logic cells) –Up to 57 Kb block RAM storage  Flexible.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR SRAM-based FPGA n SRAM-based LE –Registers in logic elements –LUT-based logic element.
1 Foundations of Software Design Lecture 3: How Computers Work Marti Hearst Fall 2002.
The Spartan 3e FPGA. CS/EE 3710 The Spartan 3e FPGA  What’s inside the chip? How does it implement random logic? What other features can you use?  What.
Reconfigurable Computing (EN2911X, Fall07)
Lecture 4: Computer Memory
Introduction to Registers Being just logic, ALUs require all the inputs to be present at once. They have no memory. ALU AB FS.
The Xilinx Spartan 3 FPGA EGRE 631 2/2/09. Basic types of FPGA’s One time programmable Reprogrammable (non-volatile) –Retains program when powered down.
EE 261 – Introduction to Logic Circuits Module #8 Page 1 EE 261 – Introduction to Logic Circuits Module #8 – Programmable Logic & Memory Topics A.Programmable.
Lecture 16 RC Architecture Types & FPGA Interns Lecturer: Simon Winberg Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
EKT303/4 PRINCIPLES OF PRINCIPLES OF COMPUTER ARCHITECTURE (PoCA)
Lecture 2: Field Programmable Gate Arrays September 13, 2004 ECE 697F Reconfigurable Computing Lecture 2 Field Programmable Gate Arrays.
Gary MarsdenSlide 1University of Cape Town Computer Architecture – Introduction Andrew Hutchinson & Gary Marsden (me) ( ) 2005.
Lecture #3 Page 1 ECE 4110– Sequential Logic Design Lecture #3 Agenda 1.FPGA's 2.Lab Setup Announcements 1.No Class Monday, Labor Day Holiday 2.HW#2 assigned.
CS1Q Computer Systems Lecture 8
System Arch 2008 (Fire Tom Wada) /10/9 Field Programmable Gate Array.
Lecture #3 Page 1 ECE 4110– Sequential Logic Design Lecture #3 Agenda 1.FPGA's 2.Lab Setup Announcements 1.No Class Monday, Labor Day Holiday 2.HW#2 assigned.
Fall 2012: FCM 708 Foundation I Lecture 2 Prof. Shamik Sengupta
J. Christiansen, CERN - EP/MIC
FPGA (Field Programmable Gate Array): CLBs, Slices, and LUTs Each configurable logic block (CLB) in Spartan-6 FPGAs consists of two slices, arranged side-by-side.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR FPGA Fabric n Elements of an FPGA fabric –Logic element –Placement –Wiring –I/O.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR Topics n FPGA fabric architecture concepts.
Basic Sequential Components CT101 – Computing Systems Organization.
Lecture #3 Page 1 ECE 4110–5110 Digital System Design Lecture #3 Agenda 1.FPGA's 2.Lab Setup Announcements 1.HW#2 assigned Due.
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale.
Anurag Dwivedi. Basic Block - Gates Gates -> Flip Flops.
EKT303/4 PRINCIPLES OF PRINCIPLES OF COMPUTER ARCHITECTURE (PoCA)
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale.
M.Mohajjel. Why? TTM (Time-to-market) Prototyping Reconfigurable and Custom Computing 2Digital System Design.
ESS | FPGA for Dummies | | Maurizio Donna FPGA for Dummies Basic FPGA architecture.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
EE121 John Wakerly Lecture #15
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR Topics n FPGA fabric architecture concepts.
1 - ECpE 583 (Reconfigurable Computing): Midterm Overview Iowa State University (Ames) CPRE 583 Reconfigurable Computing Lecture 17: Wed 10/21/2011 (Midterm.
Sequential Logic Design
Lecture 18 FPGA Interns & Performance Comparison
Prof. Sin-Min Lee Department of Computer Science
Computer Organization and Architecture + Networks
Topics SRAM-based FPGA fabrics: Xilinx. Altera..
Introduction to Registers
EEE4084F Digital Systems NOT IN 2017 EXAM Lecture 25
The 8085 Microprocessor Architecture
ECE 4110–5110 Digital System Design
Instructor: Dr. Phillip Jones
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Lecture 17 Programmable Logics & FPGAs FPGA Interns
Field Programmable Gate Array
Field Programmable Gate Array
EEE4084F Digital Systems NOT IN 2018 EXAM Lecture 24X
Recall: ROM example Here are three functions, V2V1V0, implemented with an 8 x 3 ROM. Blue crosses (X) indicate connections between decoder outputs and.
The 8085 Microprocessor Architecture
Control units In the last lecture, we introduced the basic structure of a control unit, and translated our assembly instructions into a binary representation.
ECE 352 Digital System Fundamentals
Instructor: Michael Greenbaum
Reconfigurable Computing (EN2911X, Fall07)
Presentation transcript:

Lecture 16 RC Architecture Types & FPGA Interns Lecturer: Simon Winberg

 Reminders & YODA milestone dates  Marking process  RC Architecture overview & main types  Recap of FPGAs

 Form YODA project groups!!  Indicate your team in the Wiki. Add a blog entry to describe your topic  Start on your project ASAP  7 May – Design Review

 Projects done as teams of 2 or 3  (confirm team of 1 or 3 with lecturer)  Milestone Dates  Blog (due 3 Apr)  Design review (todo list by 7 May)  Demo (16-17 May)  Code and final report (20 May)

Early Notice: Quiz next Thursday! Quiz 3 Thursday (25 Apr) Held 2pm, 45 minutes Covers Lecture 12 – 16 Seminar 7 (CH7), Seminar 8 (CH14)

 Assignment work is marked in relation to  Correctness  Completion  Structure, effectiveness of wording & layout  Adequate amount of detail/results shown & effectively dealing with the details  Indication of student’s understanding and engagement with the discipline  Clarity of explanations/motivation of results  Professionalism and overall quality

Cobbled together; List of points with no effort to formulate a logical structure or flow to the argument/results 0 lower marks 10 higher marks Well structured; Clear progression; Logically structured; Clear and effective use of headings (if headings are requested); table of contents and clear title (if asked for) Note that a mark out of 10 is just an example, depending what the assignment is marked out of in total, and weighting for different sections, this can change

Poor understanding; Over generalizing; Mathematical/logical mistakes; Non-critical discussion; Stating facts without adequate motivation 0 lower marks 10 higher marks Clear grasp of methods; Good discussion of techniques; Correct math and calculations; Good choices; Indication of scope; Clear / logical reasoning and motivation; Appropriate terminology

Wrong answers; Many mistakes; Illogical results; Inadequate proof / evidence for presented conclusions or results. 0 lower marks 10 higher marks Correct answers; Well formulated proofs / correct explanations; Logical deductions used; Adequate evidence / proofs to support conclusions or generalized results

Too little detail … or perhaps an excessive amount that makes it difficult to make sense (for the maker) of what is being shown 0 lower marks 10 higher marks An effective amount of detail. Using means, such as annotations and textual explanations, to bring out important results if a lot of data was given in the report.

Using ineffective terminology. Ineffective techniques, e.g. inappropriate for the work concerned. Cumbersome explanations not building on well understand theories in the discipline. 0 lower marks 10 higher marks Effective use of discipline- specific terminology; effective use of techniques and knowledge that are well understood in the discipline. Elegant explanations using references were applicable.

Poor layout of documents; Inappropriate wording; Poor choice of fonts; Confusing discussions and explanations; Errors in symbols and units; Grammar and spelling mistakes; Inconsistencies 0 lower marks 10 higher marks Elegant and easy-to-read layout; Good wording, well organized; Clear discussions and explanations; Proof-read; Good references (if needed); Cross-referencing to other parts of the document (if relevant); Consistent; Good grammar and correct spelling.

RC Architectures Overview Reconfigurable Computing

 A determining factor is ability to change hardware datapaths and control flows by software control  This change could be either a post-process / compile time or dynamically during runtime (doesn’t have to be both) processing elements Datapath While the trivial case (a computer with one changeable datapath could be argued as being reconfigurable) it is usually assumed the computer system concerned has many changeable datapaths.

 Currently there are two basic forms:  Microprocessor-based RC  FPGA-based RC Microprocessor-based RC: A few platform configurability features added to a microprocessor system (e.g., a multi-processor motherboard that can reroute the hardware links between processors) Besides that we’ve already seen it all in the microprocessor parallelism in part of the course

 Microprocessor based RC  Multi-core processors dynamically joined to create a larger/smaller parallel system when needed  Assumed to be a single computer platform as apposed to a cluster of computers  Needs to support software-controlled dynamic reconfiguration (see previous slide)  Tends to become: Hardware essentially changeable in big blocks (“macro-level reconfiguration” - whole processors at a time)

 FPGA based  Generally much smaller level of interconnects (more at the “micro-level reconfiguration”)  Processors that connect to FPGA(s)

 Generally, these systems follow a processors + coprocessors arrangement  CPU connectors to reprogrammable hardware (usually FPGAs)  The CPU itself may be entirely in an FPGA  The lower-level architecture is more involved… topic of Seminar #7 (‘Interconnection Fabrics’) and further discussed in later lectures. CPU FPGA-based Accelerator card … high-speed bus CPU … FPGA-based Accelerator card Multi-processor or multi-core processor computer Plug-in cards

FPGA Interns EEE4084F

FPGA internal structure Image adapted from Maxfield (2004) Programmable logic element (PLE) (or FPLE*) * FPLE = Field Programmable Logic Element Note: one programmable logic block (PLB) may contain a complex arrangement of programmable logic elements (PLE). The size of a FPGA or programmable logic device (PLD) is measured in the number of LEs (i.e., Logic Elements) that it has.

 You already know all your logic primitives…  The primitive logic gates  AND, OR, NOR, NOT, NOR, NAND, XOR  AND3, OR4, etc (for multiple inputs).  Pins / sources / terminators  Ground, VCC  Input, output  Storage elements  JK Flip Flops  Latches  Others items: delay, mux OR Input Pin Output Pin Altera Quartus II representations

 A simple but powerful approach to FPGA design is to use lookup tables for the PLBs. These are usually implemented as a combination of a multiplexer and memory (even just using NOR gates)  Essentially, this approach is building complex circuits using truth tables (where each LUT enumerates a truth table) The usual strategy for implementing PLBs examples follows…

Simple 3-LUT implementation for a PLB bit static memory3 3-bit input bus 1-bit output Any guesses as to what logic circuit this LUT implements? input values

Simple 3-LUT implementation for a PLB input lines It’s an XOR of the 3 input lines!!! output in out

Mainstream* Programmable Logic Block (PLB) k-input LUT DFF clock … k inputs output config_sync Configure synchronous or asynchronous response (i.e. a line from another big LUT). 0 1 Image adapted from Maxfield (2004) Another example for implementing an alternate logic function. * Used by manufacturers like Xilinx

Logic block clusters (LBCs) and Configurable logic blocks (CLBs) Assume a k-input LUT for each logic block (LB) Assume N x LBs per logic cluster BLEs in each logic clusters are fully connected or mostly connected Diagram adapted from Sherief Reda (2007), EN2911X Lecture 2 Fall07, Brown University The diagram shows the same input lines (I) are sent to each LB, in addition to each of the N LBs’ output lines. Each LB operates on 4 input lines at a time, and a MUX is used to decide which input to sample. The MUXs may be configured from a separate LUT, or could be controlled by the LB it is connected to. LB … N x LBs

“Every slice contains four logic-function generators (or LUTs), eight storage elements, wide- function multiplexers, and carry logic. These elements are used by all slices to provide logic, arithmetic, and ROM functions. In addition to this, some slices support two additional functions: storing data using distributed RAM and shifting data with 32-bit registers. Slices that support these additional functions are called SLICEM; others are called SLICEL. SLICEM represents a superset of elements and connections found in all slices. Each CLB can contain zero or one SLICEM. Every other CLB column contains a SLICEMs. In addition, the two CLB columns to the left of the DSP48E columns both contain a SLICEL and a SLICEM.” Source: pg 8http://

SLICEM slices support additional functions; they are a superset of SLICELs; i.e. the have all the standard LEs plus some additions. Source: pg 9

SLICEL slices contain the standard set of LEs for the particular FPGA concerned. As the diagram shows, it looks a little less complicated than the design of a SLICEM. Source: pg 10

HDL to FPGA execution & LE cost Map ‘AND(e,f,g)’ to LB1 In order to implement a HDL design, the design need to be decomposed and mapped to the physical LBs on the FPGA and the interconnects need to be appropriately configured. Example: x = AND(e,f,g) y = AND(b,NAND(NAND(b,c),d)) out = NAND((NAND(x,y),NAND(a,y)) out x y Map ‘NAND((NAND(x,y),NAND(a,y))’ to LB2 Map ‘AND(b,NAND(NAND(b,c),d)) ’ to LB3 Costing: 3 LBs, 8 LEs (assuming LBs have LEs that are AND or NAND gates)

 The previous slide didn’t show whether the connections were synchronized (i.e., a shared clock) or asynchronous –since they are all logic gates and no clocks show it’s probably asynchronous  Determining the timing constrains for synchronous configurations are generally easier, because everything is related to the clock speed. Still, you need to keep in mind cascading calculations.  For asynchronous use, the implementation could run faster, but can also become a more complicated design, and be more difficult to work out the timing…

 Keep in mind that the propagation delays for the various gates / LUTs may be different – for example, in the previous example, let’s assume each AND may take 6ns to stabilise, and the NANDS 10ns.  So time to compute out is = MAX OF (time to compute x, time to compute y) + 2x10ns = (2x10ns+6ns) + 20ns = 46ns = pretty fast!! Or is it?? Compared to a 1GHz CPU using just registers (and no mem access)? Try this calculation for yourself... (assume each instruction takes on avg. 3 clocks due to pipeline, data dependencies, etc, as worst case performance on a RISC processor)

CPU running at 1GHz  each clock 1ns period Assume each instruction takes ~ 5 clocks each due to pipeline etc CODE: int doit ( unsigned a, b, c, d, e, f, g ) { unsigned x = AND(e,f,g); unsigned y = AND(b,NAND(NAND(b,c),d)) out = NAND((NAND(x,y),NAND(a,y)) return out; } unsigned t1 = AND(e,f);  1 instruction, i.e. AND t1,e,f unsigned x = AND(t1,g); unsigned t1 = NAND(b,c) unsigned t2 = NAND(t1,d) unsigned y = AND(b,t2) t1 = NAND(x,y) t2 = NAND(a,y) out = NAND(t1,t2) in all 8 instructions  8 x 3 clocks ea. = 24 ns (assuming all registers pre-loaded) A speed-up of 1.92 over the FPGA case But some of these Can’t be done as just 1 RISC instruction.

 RC architecture case studies  IBM Blade & the cell processor  Some large-scale RC systems  Amdahl’s Law reviewed and critiqued