technische universitt dortmund fakultt fr informatik 12 Graphics

  • Slides: 42
Download presentation
technische universität dortmund fakultät für informatik 12 Graphics: © Alexandra Nolte, Gesine Marwedel, 2003

technische universität dortmund fakultät für informatik 12 Graphics: © Alexandra Nolte, Gesine Marwedel, 2003 Embedded System Hardware Peter Marwedel Informatik 12 TU Dortmund Germany 2011/03/09 These slides use Microsoft clip arts. Microsoft copyright restrictions apply.

TU Dortmund Motivation § The need to consider both hardware and software is one

TU Dortmund Motivation § The need to consider both hardware and software is one of the characteristics of embedded/cyber-physical systems. Reasons: • Real-time behavior • Efficiency - Energy - … • Security • Reliability • … technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 2 -

TU Dortmund Application Knowledge Structure of this course 2: Specification Design repository 3: ES-hardware

TU Dortmund Application Knowledge Structure of this course 2: Specification Design repository 3: ES-hardware 6: Application mapping 4: system software (RTOS, middleware, …) Design 8: Test 7: Optimization 5: Evaluation & validation (energy, cost, performance, …) Numbers denote sequence of chapters technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 3 -

TU Dortmund Embedded System Hardware Embedded system hardware is frequently used in a loop

TU Dortmund Embedded System Hardware Embedded system hardware is frequently used in a loop (“hardware in a loop“): cyber-physical systems technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 4 -

TU Dortmund Many examples of such loops § Heating § Lights § Engine control

TU Dortmund Many examples of such loops § Heating § Lights § Engine control § Power supply §… § Robots Heating: www. masonsplumbing. co. uk/images/heating. jpg Robot: : Courtesy and ©: H. Ulbrich, F. Pfeiffer, TU München technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 5 -

TU Dortmund Sensors Processing of physical data starts with capturing this data. Sensors can

TU Dortmund Sensors Processing of physical data starts with capturing this data. Sensors can be designed for virtually every physical and chemical quantity § including weight, velocity, acceleration, electrical current, voltage, temperatures etc. § chemical compounds. Many physical effects used for constructing sensors. Examples: § law of induction (generation of voltages in an electric field), § light-electric effects. Huge amount of sensors designed in recent years. technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 6 -

TU Dortmund Example: Acceleration Sensor Courtesy & ©: S. Bütgenbach, TU Braunschweig technische universität

TU Dortmund Example: Acceleration Sensor Courtesy & ©: S. Bütgenbach, TU Braunschweig technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 7 -

TU Dortmund Charge-coupled devices (CCD) image sensors Based on charge transfer to next pixel

TU Dortmund Charge-coupled devices (CCD) image sensors Based on charge transfer to next pixel cell Corresponding to “bucket brigade device” (German: “Eimerkettenschaltung”) technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 8 -

TU Dortmund CMOS image sensors Based on standard production process for CMOS chips, allows

TU Dortmund CMOS image sensors Based on standard production process for CMOS chips, allows integration with other components. technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 9 -

TU Dortmund Comparison CCD/CMOS sensors Property CCD CMOS Technology optimized for Optics VLSI technology

TU Dortmund Comparison CCD/CMOS sensors Property CCD CMOS Technology optimized for Optics VLSI technology Technology Special Standard Smart sensors No, no logic on chip Logic elements on chip Access Serial Random Size Limited Can be large Power consumption Low Larger Applications Compact cameras Low cost devices, SLR cameras See also B. Diericks: CMOS image sensor concepts. Photonics West 2000 Short course (Web) technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 -

TU Dortmund Example: Biometrical Sensors e. g. : Fingerprint sensor © P. Marwedel, 2010

TU Dortmund Example: Biometrical Sensors e. g. : Fingerprint sensor © P. Marwedel, 2010 technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 11 -

TU Dortmund Artificial eyes © Dobelle Institute (was at www. dobelle. com) technische universität

TU Dortmund Artificial eyes © Dobelle Institute (was at www. dobelle. com) technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 12 -

TU Dortmund Artificial eyes (2) He looks hale, hearty, and healthy — except for

TU Dortmund Artificial eyes (2) He looks hale, hearty, and healthy — except for the wires. …. From a distance the wires look like long ponytails. © Dobelle Institute technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 13 -

TU Dortmund Artificial eyes (3) § Translation into sound; resolution claimed to be good

TU Dortmund Artificial eyes (3) § Translation into sound; resolution claimed to be good [http: //www. seeingwithsound. com/etumble. htm] technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 Movie - 14 -

TU Dortmund Other sensors § Rain sensors for wiper control (“Sensors multiply like rabbits“

TU Dortmund Other sensors § Rain sensors for wiper control (“Sensors multiply like rabbits“ [ITT automotive]) § Pressure sensors § Proximity sensors § Engine control sensors § Hall effect sensors technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 15 -

TU Dortmund Signals Sensors generate signals Definition: a signal s is a mapping from

TU Dortmund Signals Sensors generate signals Definition: a signal s is a mapping from the time domain DT to a value domain DV: s: DT DV DT : continuous or discrete time domain DV : continuous or discrete value domain. technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 16 -

technische universität dortmund fakultät für informatik 12 Peter Marwedel Informatik 12 TU Dortmund Germany

technische universität dortmund fakultät für informatik 12 Peter Marwedel Informatik 12 TU Dortmund Germany Graphics: © Alexandra Nolte, Gesine Marwedel, 2003 Discretization

TU Dortmund Discretization of time Digital computers require discrete sequences of physical values s

TU Dortmund Discretization of time Digital computers require discrete sequences of physical values s : DT DV Discrete time domain Sample-and-hold circuits technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 18 -

TU Dortmund Sample-and-hold circuits Clocked transistor + capacitor; Capacitor stores sequence values e(t) is

TU Dortmund Sample-and-hold circuits Clocked transistor + capacitor; Capacitor stores sequence values e(t) is a mapping ℝ ℝ h(t) is a sequence of values or a mapping ℤ ℝ technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 19 -

TU Dortmund Do we loose information due to sampling? Would we be able to

TU Dortmund Do we loose information due to sampling? Would we be able to reconstruct input signals from the sampled signals? approximation of signals by sine waves. technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 20 -

TU Dortmund Approximation of a square wave (1) K=1 Target: square wave with period

TU Dortmund Approximation of a square wave (1) K=1 Target: square wave with period p 1=4 K=3 with k: pk= p 1/k: periods of contributions to e’ technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 21 -

TU Dortmund Approximation of a square wave (2) K=5 K=7 technische universität dortmund fakultät

TU Dortmund Approximation of a square wave (2) K=5 K=7 technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 22 -

TU Dortmund Approximation of a square wave (3) K=9 K=11 technische universität dortmund fakultät

TU Dortmund Approximation of a square wave (3) K=9 K=11 technische universität dortmund fakultät für informatik Applet at © http: // p. marwedel, informatik 12, 2010 www. jhu. edu/~signals/fourier 2/index. html- 23 -

TU Dortmund Linear transformations Let e 1(t) and e 2(t) be signals Definition: A

TU Dortmund Linear transformations Let e 1(t) and e 2(t) be signals Definition: A transformation Tr of signals is linear iff In the following, we will consider linear transformations. We consider sums of sine waves instead of the original signals. technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 24 -

TU Dortmund Aliasing Periods of 8, 4, 1 Indistinguishable if sampled at integer times,

TU Dortmund Aliasing Periods of 8, 4, 1 Indistinguishable if sampled at integer times, ps=1 technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 Matlab demo - 25 -

TU Dortmund Aliasing (2) Reconstruction impossible, if not sampling frequently enough How frequently do

TU Dortmund Aliasing (2) Reconstruction impossible, if not sampling frequently enough How frequently do we have to sample? Nyquist criterion (sampling theory): Aliasing can be avoided if we restrict the frequencies of the incoming signal to less than half of the sampling rate. ps < ½ p. N where p. N is the period of the “fastest” sine wave or fs > 2 f. N where f. N is the frequency of the “fastest” sine wave f. N is called the Nyquist frequency, fs is the sampling rate. See e. g. [Oppenheim/Schafer, 2009] technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 26 -

TU Dortmund Anti-aliasing filter A filter is needed to remove high frequencies e 4(t)

TU Dortmund Anti-aliasing filter A filter is needed to remove high frequencies e 4(t) changed into e 3(t) Ideal filter Realizable filter fs /2 technische universität dortmund fs fakultät für informatik p. marwedel, informatik 12, 2010 - 27 -

TU Dortmund Examples of Aliasing in computer graphics Original technische universität dortmund Sub-sampled, no

TU Dortmund Examples of Aliasing in computer graphics Original technische universität dortmund Sub-sampled, no filtering fakultät für informatik p. marwedel, informatik 12, 2010 http: //en. wikipedia. org/wiki/Image: Moire_pattern_of_bricks_small. jpg - 28 -

TU Dortmund Examples of Aliasing in computer graphics (2) Original (pdf screen copy) Filtered

TU Dortmund Examples of Aliasing in computer graphics (2) Original (pdf screen copy) Filtered & subsampled Subsampled, no filtering http: //www. niirs 10. com/Resources/ Reference Documents/Accuracy in Digital Image Processing. pdf technische universität dortmund Impact of rasterization fakultät für informatik p. marwedel, informatik 12, 2010 - 29 -

TU Dortmund Discretization of values: A/D-converters Digital computers require digital form of physical values

TU Dortmund Discretization of values: A/D-converters Digital computers require digital form of physical values s: DT DV Discrete value domain A/D-conversion; many methods with different speeds. technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 30 -

TU Dortmund Flash A/D converter * Encodes input number of most significant ‘ 1’

TU Dortmund Flash A/D converter * Encodes input number of most significant ‘ 1’ as an unsigned number, e. g. “ 1111” -> “ 100”, “ 0111” -> “ 011”, “ 0011” -> “ 010”, “ 0001” -> “ 001”, “ 0000” -> “ 000” (Priority encoder). * Frequently, the case h(t) > Vref would not be decoded technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 31 -

TU Dortmund Assuming 0 h(t) Vref Encoding of voltage intervals “ 11“ “ 10“

TU Dortmund Assuming 0 h(t) Vref Encoding of voltage intervals “ 11“ “ 10“ “ 01“ “ 00“ technische universität dortmund fakultät für informatik Vref /4 p. marwedel, informatik 12, 2010 Vref /2 3 Vref /4 Vref h(t) - 32 -

TU Dortmund Resolution § Resolution (in bits): number of bits produced § Resolution Q

TU Dortmund Resolution § Resolution (in bits): number of bits produced § Resolution Q (in volts): difference between two input voltages causing the output to be incremented by 1 with Q: resolution in volts per step VFSR: difference between largest and smallest voltage n: number of voltage intervals technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 Example: Q = Vref /4 for the previous slide, assuming * to be absent - 33 -

TU Dortmund Resolution and speed of Flash A/D-converter Parallel comparison with reference voltage Speed:

TU Dortmund Resolution and speed of Flash A/D-converter Parallel comparison with reference voltage Speed: O(1) Hardware complexity: O(n) Applications: e. g. in video processing technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 34 -

TU Dortmund Higher resolution: Successive approximation h(t) V- w(t) Key idea: binary search: Set

TU Dortmund Higher resolution: Successive approximation h(t) V- w(t) Key idea: binary search: Set MSB='1' if too large: reset MSB Set MSB-1='1' if too large: reset MSB-1 technische universität dortmund Speed: O(log 2(n)) Hardware complexity: O(log 2(n)) with n= # of distinguished voltage levels; slow, but high precision possible. fakultät für informatik p. marwedel, informatik 12, 2010 - 35 -

TU Dortmund Successive approximation (2) V 1100 Vx h(t) 1011 1010 1000 V- t

TU Dortmund Successive approximation (2) V 1100 Vx h(t) 1011 1010 1000 V- t technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 36 -

TU Dortmund Application areas for flash and successive approximation converters Effective number of bits

TU Dortmund Application areas for flash and successive approximation converters Effective number of bits at bandwidth (used in multimeters) (usingle bit D/A-converters; common for high quality audio equipments) [http: //www. beis. de/Elektronik/ Delta. Sigma/Delta. Sigma. html] (Pipelined flash converters) [Gielen et al. , DAC 2003] technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 Movie IEEE tv - 37 -

TU Dortmund Quantization Noise Assuming “rounding“ (truncating) towards 0 h(t) w(t)-h(t) technische universität dortmund

TU Dortmund Quantization Noise Assuming “rounding“ (truncating) towards 0 h(t) w(t)-h(t) technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 38 -

TU Dortmund Quantization Noise h(t) Assuming “rounding“ (truncating) towards 0 w(t) h(t)-w(t) technische universität

TU Dortmund Quantization Noise h(t) Assuming “rounding“ (truncating) towards 0 w(t) h(t)-w(t) technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 39 -

TU Dortmund Quantization noise for audio signal e. g. : 20 log(2)=6. 02 decibels

TU Dortmund Quantization noise for audio signal e. g. : 20 log(2)=6. 02 decibels Signal to noise for ideal n-bit converter : n * 6. 02 + 1. 76 [d. B] e. g. 98. 1 db for 16 -bit converter, ~ 160 db for 24 -bit converter Additional noise for non-ideal converters technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 Source: [http: //www. beis. de/Elektronik/ Delta. Sigma/Delta. Sigma. html] MATLAB demo - 40 -

TU Dortmund Signal to noise ratio e. g. : 20 log 10(2)=6. 02 decibels

TU Dortmund Signal to noise ratio e. g. : 20 log 10(2)=6. 02 decibels Signal to noise for ideal n-bit converter : n * 6. 02 + 1. 76 [d. B] e. g. 98. 1 db for 16 -bit converter, ~ 160 db for 24 -bit converter Additional noise for non-ideal converters technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 41 -

TU Dortmund Summary Hardware in a loop § Sensors § Discretization • Definition of

TU Dortmund Summary Hardware in a loop § Sensors § Discretization • Definition of signals • Sample-and-hold circuits - Aliasing (and how to avoid it) - Nyquist criterion • A/D-converters - Flash-based - Successive approximation - Quantization noise technische universität dortmund fakultät für informatik p. marwedel, informatik 12, 2010 - 42 -