


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















HW/SW Codesign w/ FPGAs^ Embedded Systems
Overview (Slides from Embedded Systems Design, F. Vahid and T. Givargis)^ Embedded computing systems definition:• Computing systems embedded within electronic devices.• Hard to define -- nearly any computing system other than a desktop computer.• Billions of units produced yearly, versus millions of desktop units.• Perhaps 50 per household and per automobile.^ Characteristics of Embedded Systems^ • Single-functionedExecutes a single program, repeatedly.• Tightly-constrainedLow cost, low power, small, fast, etc.• Reactive and real-timeContinually reacts to changes in the system’s environment.Must compute certain results in real-time without delay.For example, a car’s cruise controller must monitor and react to speed andbrake sensors.
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System Example^ A digital camera chip: Single-functioned, tightly-constrained (low cost/power/small), not
real-time. CCD CCD preprocessor^ A/D^ lens
Pixel coprocessorA/D JPEG codec Microcontroller^ Mult/Accum^ Display Ctrl DMA controller Mem. controller^ LCD CtrlUARTISA bus interface
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System Challenges^ Improving one design metric one may worsen othersDesigners must be an expert with
Power^ Size PerformanceNRE cost both^ software^ and^ hardware. They must be comfortable with various technologies (and moving betweenthem) in order to choose the best for a given application and constraints. Time-to-Market Design MetricMarket window : Period during which the product would have highest sales.Challenge: Growing system complexities, driven by increased IC capacities,requires designers to do more in less time.
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System Design MetricsTime-to-Market Design Metric^ Delays can be^ costly : % revenue lost = ((
On-time^ -^ Delayed )/ On-time )* (^2) • On-time = 1/2 * 2W * W = W(assumes market rise is at 45 degree angle)• Delayed = 1/2 * (W-D+W)*(W-D)• Percentage revenue loss = (D(3W-D)/2W
E.g.: Lifetime 2W = 52 wks, delay D = 10 wks -> (10(326 - 10)/2*
Peak revenue On-time Market rise Delayed WD (^) On-time entryDelayed entry Simplified revenue model^ Product life: 2W, peak at W^ Peak revenue from delayed entryArea of triangle equalsrevenueArea difference isrevenue loss^ Time2W MarketriseMarketfall
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System Design MetricsNRE and Unit Cost Metrics:^ So both^ per-product cost^ and
time-to-market^ must be considered to determinerevenue impact. Performance Metric: • Clock frequency , instructions per second Commonly used but most widely abused measure.For example, for a digital camera example, the user cares about^
how fast it $160$120$80 $40 Per product cost $0^0 800 1600^ Number of units (volume) processes images , not about the clock speed or instructions per second.
Low NRE Low unit cost Approachper-product cost 2400 at high volumes
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System Design MetricsPerformance Metric:^ The two main measures of performance are:•^ Latency^ (response time)Time between task start and end, e.g., Camera can process images in 0.25seconds^ • Throughput^ Tasks processed per secondNote that throughput is NOT always the number of tasks * latency becauseof^ pipelining^ Camera may be able to process 8 images/sec. by capturing a new imagewhile previous image is being stored.^ Three Key Embedded System Technologies^ Technology defined:A manner of accomplishing a task, especially using technical processes,methods, or knowledge
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System TechnologiesProcessor Technology General-Purpose Processors General PurposeApplication-Specific^ Single-Purpose Controller^ Datapath^ Controller^ Datapath^ Controller^ Datapath Control^ Reg.^ Control^ Reg.^ Controllogic andfilelogic andfilelogicstate regs.state regs.^ General^ Custom state IR^ PC^ IR^ PC^ ALU^ ALUregs. Program^ Data^ Program^ DatamemorymemorymemorymemoryAssemblyAssemblycode for:code for: total^ = 0^ total^ = 0for i = 1 to ...for i = 1 to ... : Program memory and data path are generic -- can execute^ any^ program.
indextotal^ + Datamemory
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System TechnologiesProcessor TechnologyGeneral-Purpose Processors
: Data path typically has a large register file and one or more^ general purpose ALUsEmbedded system designer does NOT need to be concerned with the designof the processor, he/she simply installs a program into memory.Benefits: time-to-market is low,^ flexibility^ is high,^ unit cost^ can be low insmall quantities ( NRE cost^ distributed over other customers), and
perfor- mance^ high when using cutting edge technologies.Drawbacks:^ Unit cost^ can be high in large quantities (custom processor canbe designed with lower NRE costs),^ performance
can be low for certain apps, and^ size / power^ can be large because of unneeded features.
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System TechnologiesProcessor TechnologyApplication Specific Processors
: ASIPs are a programmable processor optimized for a particular^ class
of applications -- compromise between GPP and single-purpose processors.Examples include^ microcontrollers^ and
digital-signal processors. Microcontrollers are optimized for embedded control apps, where monitor-ing and setting of numerous^ single-bit
control signals are common. Datapath is optimized for application class by adding special
functional units for common operations and eliminating infrequently used units.Benefits:^ flexibility^ can be high^ while^ achieving good
performance ,^ power and^ size. Drawbacks:^ NRE costs^ can be high both in circuit and compiler design,some inefficiency because of features to support
reprogrammability.
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System TechnologiesIC Technology^ The manner in which a digital (gate-level) implementation is mapped onto achip. IC technology is^ independent
of processor technology, i.e., any type of proces-sor can be mapped to any type of IC technology.Single GPP^ ASIP^ purposeprocessor PLD Semi-custom^ Full-customA chip is fabricated using a sequence processing steps, with transistors fabri-cated in the substrate and metal wires above. FlexibilityMaintainabilityNRE costTime-to-marketCost (low volume)
Power efficiencyPerformanceSizeCost (highvolume)
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System TechnologiesIC Technology: Semi-custom ASIC
(gate array and standard cell)For ASIC, the lower layers are fully or partially built, leaving the upper layers tobe customized for the application.For gate array ASICs, the masks for the transistor and gate levels are alreadybuilt -- the chip already consists of arrays of gates.All that remains is to define the interconnections of the gates.For standard cell ASICs, a set of logic-level cells, e.g., NAND and NOR, arehand designed.Place and route tools automatically configure the gates and interconnect toimplement the design.ASICs are the most popular IC technology.ASICs provide good performance^ and^ size , lower^ NRE cost^ (w.r.t. full custom).Drawback: Still require weeks to months to manufacture.
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System TechnologiesIC Technology: PLD^ For programmable logic devices, all layers already exist.PLDs can be partitioned into two categories, simple and complex.PLAs, PALs and GALs are simple. They are programmed by configuringAND and/or OR gates.CPLDs and FPGAs are complex and implement a more sophisticated con-nection scheme between gates.PLDs offer a low^ NRE cost , are instantly
available^ and are excellent for^ proto- typing. Drawbacks: They are larger than ASICs, have higher
unit cost , may consume more^ power^ and have lower^ performance
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System TechnologiesDesign Technology:^ Compilation/Synthesis:Desired functionality is described in abstract manner and lower-level imple-mentation details are^ automatically
generated.Removal of the details improves productivity by as much as an order ofmagnitude.
program into FSMs and register transfers.• Compiler: converts a sequential program to assembly code (RTL).• System synthesis: converts an abstract system spec. into a set of
sequential^ pro- grams on general- and single-purpose processors.
HW/SW Codesign w/ FPGAs^ Embedded Systems
Embedded System TechnologiesDesign Technology:^ Libraries/IP:Libraries allow^ reuse^ of pre-existing implementations, and thereforeimprove productivity.^ IP cores^ are a good example.• Logic libraries: consist of^ layouts
of gates and cells• RT-library: consists of layouts of registers, MUXs, decoders and functionalunits.• Behavioral library: consists of compression components, bus interfaces, displaycontrollers and GPUs.• System-level library: consists of complex systems^ solving particular problems,such as an interconnection of processors with OS^ and programs to implementan ethernet protocol.