Docsity

Hardware Software Codesign with FPGAs | ECE 495, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
HW/SW Codesign w/ FPGAs Course Intro ECE 495/595
ECE UNM 1 (3/24/09)
Hardware Software Codesign with FPGAs
Instructors:
ECE: Jim Plusquellic
FMAC: Craig Kief and Steve Suddarth
Reference Texts:
There does not appear to be a "good" text for this course. Material for this course will
be drawn from Schaumont’s lecture notes and the following texts where appropriate:
• "Hardware/Software Co-Design - Principles and Practice"
J. Staunstrup and W. Wolf, Kluwer Academic Publishers, 1997.
ISBN: 0792380134
• "Co-Design for System Acceleration A Quantitative Approach"
Nadia Nedjah, Luiza de Macedo Mourelle, 2007.
ISBN: 978-1-4020-5545-4
• "Embedded System Design, A Unified Hardware/Software Introduction"
Frank Vahid and Tony Givargis, 2002.
ISBN: 978-0-471-38678-0
Web: http://www.ece.unm.edu/faculty/jimp/codesign
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Hardware Software Codesign with FPGAs | ECE 495 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^ Hardware Software Codesign with FPGAs^1 (3/24/09) Instructors:^ ECE: Jim PlusquellicFMAC: Craig Kief and Steve Suddarth Reference Texts:^ There does not appear to be a "good" text for this course. Material for this course willbe drawn from Schaumont’s lecture notes and the following texts where appropriate:• "Hardware/Software Co-Design - Principles and Practice"J. Staunstrup and W. Wolf, Kluwer Academic Publishers, 1997.ISBN: 0792380134• "Co-Design for System Acceleration A Quantitative Approach"Nadia Nedjah, Luiza de Macedo Mourelle, 2007.ISBN: 978-1-4020-5545-4• "Embedded System Design, A Unified Hardware/Software Introduction"Frank Vahid and Tony Givargis, 2002.ISBN: 978-0-471-38678-0 Web:^ http://www.ece.unm.edu/faculty/jimp/codesign

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Introduction^ What is Hardware/Software codesign?According to IEEE DASC Codesign Study Group, the term ’codesign’ can be definedas following:• HW/SW Codesign is a design methodology supporting the

concurrent^ develop- ment of hardware and software (cospecification, codevelopment and coverifica-tion) in order to achieve^ shared functionality and performance goals

for a combined system.• HW/SW Codesign means^ meeting system level objectives

by exploiting the^ syner- gism^ of hardware and software through their concurrent designGiovanni De Micheli and Rajesh Gupta, "Hardware/Software Co-design",IEEE Proceedings, vol. 85, no.3, March 1997, pp. 349-365.• Codesign is the concurrent development of hardware and software.• Codesign is the cooperative design of hardware and software components.• Codesign is the unification of currently separate hardware and software paths.

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Introduction^ Research on Codesign was intense in the ’90’s.Why is this topic important for the new generation of Computer Engineers?Progress in VLSI/microelectronics has enabled the integration of

microproces- sors^ and^ reconfigurable logic^ on a single chip.Reconfigurable systems are^ flexible

and are key to meeting time-to-market,power, size, performance, flexibility and cost constraints. The integration of^ heterogeneous components

onto a single chip has made it possible to implement very large complex, energy optimized systems.Energy-efficiency requirements preclude software-only approaches.Effective use of System-on-Chip (SoC) requires designers to be knowledgeablein^ both hardware and software domains

in order to make good design tradeoffs.

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Overview of Codesign^ (Source: Hardware/Software Co-Design, G. De Micheli, et al, Proc. of IEEE, March 1997)^ Most engineering designs can be viewed as

systems. Collections of several (possibly^ heterogeneous

) components whose combined operation provides useful services.Most systems today are either^ electronic^ in nature (information processing systems)or contain an electronic subsystem (plant control).Their implementation are often predominantly digital-based, and are

programma- ble , i.e., consist of both hardware and software components.The evolution of IC technology has motivated new approaches to digital design.Smaller mask geometries leads to higher integration but also higher

cost of fab- rication , requiring higher volumes to amortize the cost of hardware design.This motivates the use of^ software^ to differentiate products that are based on thesame hardware platform.

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Overview of Codesign^ For example, one or more FPGAs may be configured on-the-fly to implement a spe-cific software function with better performances than a microprocessor.Subsequently, they can be^ reprogrammed

to perform another specific function. At a high level, the capabilities of an FPGA are then

indistinguishable^ from that of a microprocessor.At a lower level, however, the programmer’s interface to FPGAs and micropro-cessors is very different.HW/SW Codesign is a complex discipline that builds upon advances in

software compilation ,^ computer architecture^ and

VLSI^ circuit design.Unfortunately, the field is fragmented and context-dependent because mostefforts are applied to specific design problems.

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Classification of Digital SystemsCodesign Application Domains : A digital system may provide a service as a

self-contained unit^ or as^ part of a larger system. A computer is an example of a self-contained system and a digital control sys-tem for a manufacturing plant, an example of an

embedded system. Embedded^ means being part of a larger unit and providing a dedicated service to thatunit.^ Self-contained^

Embedded systems Information^ Transport^ ConsumerProcessing Computers^ Appliances^ AutomobilesEmulatorsGamesTrainsPrototypingHiFiShips/Aircraft^ Lumped

Plant^ Networks Control Control Manufacturing^ TelephoneChemicalDefensePower Gen. Locally distributed^ Global

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Classification of Digital SystemsImplementation Features : The choice of hardware technology for the system components affects the over-all performance and cost, and therefore, is of great importance.System-level^ field^ programmability can be achieved by• Storing programs in read/write memories• Exploiting programmable interconnectsSystems can be constructed from• Components, such as ASIC’s, processor and memories, mounted on a board• Or as single chips with embedded ASICs, processor cores and memoriesAdvantages of higher integration (single chip solutions) are increased perfor-mance and lower power consumption.Disadvantages include higher complexity in debugging.Read reference paper: "Hardware/Software Co-design", Giovanni De Micheli,for discussion next time.

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Challenges of Codesign^ Goals to improving the joint development of hardware and software:• To reduce design time• To reduce the cost of modifications and evolution• To optimize the hardware/software partitioning process^ Target Architectures of Codesign^ Microprocessor^

FPGA^ SoC Microcontroller DSP

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Codesign Examples^ Video Codec (H261)^ Camera^ Grabber^ VLD^ MSQ busMCC bus

Display MSQ IDCT^ MCC Unframer Framer DCT ISDNLine

Pred.M.E.^ VLCFilter^ CODECSW Processors uP+codeHW Processors HW

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Embedded Systems^ Information processing systems embedded in a larger productEmbedded system design challenges• Increasing application complexityMixture of event driven and data flow tasks• Increasing target system complexityMixture of different technologies, processor types, and design stylesDistributed system implementations

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Hardware and Software Design^ As indicated in the paper "Hardware/Software Co-design", the distinction betweenhardware and software design is becoming

blurred. Consider the following modern hardware platforms:• Programming an FPGA is accomplished using a ’bitstream’.Once configured, it carries out operations directly in the hardware, so in thissense, its hard-wired.But consider programming the FPGA with a soft-core microprocessor -- onceconfigured, it executes instructions and is completely programmable.• Digital Signal Processors (DSPs) is a specialized microprocessor that executesinstructions but provides special hardware functions to accelerate certain opera-tions. • An Application-Specific Instruction-set Processor (ASIP) allows the instruction setitself to be customized based on the application.The ASIP contains both^ static^ logic (that implements a minimum ISA) and

con- figurable^ logic, that can be used to design new instructions.

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

System-level Design^ Codesign boils down to choosing an underlying

fixed^ architecture that supports a set of^ flexable , e.g., software, components that run on top of it.^ General purpose processors^ FPGA^ DSP/microcontroller^ ASIP^ ASIC

Most FlexibilityLeast Informal Specification,Constraints Least Energy Most Application Represents a new application,^ e.g., a new way of encodingaudio^ ImplementationAlternatives Choose architecture efficiency

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Energy Efficiency vs. Performance Criteria^ A major driver to the proliferation in the usage of different implementation technolo-gies is^ energy efficiency. Consider the energy efficiency of an AES algorithm on different platforms (source:Patrick Schaumont’s lecture slides)^210110010 -1^102 10--3^ Gb/J^10 -4^10 -5^10 -6^10 0.18 umVertex2AsmCMOS^ FPGA^ Pentium-IIIEnergy efficiency is independent of Clk freq. and can be applied universally.Performance, on the other hand, is not a big driver because the difference is smaller.

AES flexible onthe rightBut energy efficienton the leftThis data shows whyGHz Pentiums arenot likely to showup in cell phones.CJava Sparc KVM Sparc

HW/SW Codesign w/ FPGAs^

Course Intro^ ECE 495/ ECE UNM^

Design Flow^ classic design^ HW SW

co-design HW SW^ HW^ SW Specification System Synthesis^ Estimation SW-Compilation^ Instruction Set

HW-Synthesis IntellectualProp. Code^ Machine Code^

IntellectualProp. BlockNetlists Fixed Processor Arch^

Application Specific Arch DSP/microcontroller/ASIP follow both paths