untitled

Similar documents
DE1-SoC Board

APOGEE Insight_KR_Base_3P11

본문01


example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for

04-다시_고속철도61~80p

Microsoft PowerPoint - ch03ysk2012.ppt [호환 모드]

ecorp-프로젝트제안서작성실무(양식3)

Page 2 of 6 Here are the rules for conjugating Whether (or not) and If when using a Descriptive Verb. The only difference here from Action Verbs is wh

solution map_....

歯15-ROMPLD.PDF


¹Ìµå¹Ì3Â÷Àμâ

<31325FB1E8B0E6BCBA2E687770>

FMX M JPG 15MB 320x240 30fps, 160Kbps 11MB View operation,, seek seek Random Access Average Read Sequential Read 12 FMX () 2

Oracle Apps Day_SEM

<30362E20C6EDC1FD2DB0EDBFB5B4EBB4D420BCF6C1A42E687770>

PowerChute Personal Edition v3.1.0 에이전트 사용 설명서

Service-Oriented Architecture Copyright Tmax Soft 2005


°í¼®ÁÖ Ãâ·Â

김기남_ATDC2016_160620_[키노트].key

Microsoft PowerPoint - Freebairn, John_ppt

Buy one get one with discount promotional strategy

PowerPoint 프레젠테이션

<32382DC3BBB0A2C0E5BED6C0DA2E687770>

11¹Ú´ö±Ô

歯I-3_무선통신기반차세대망-조동호.PDF

歯3이화진


PCServerMgmt7

±èÇö¿í Ãâ·Â

Vol.257 C O N T E N T S M O N T H L Y P U B L I C F I N A N C E F O R U M

2 / 26

Page 2 of 5 아니다 means to not be, and is therefore the opposite of 이다. While English simply turns words like to be or to exist negative by adding not,

Output file

untitled

untitled

Á¶´öÈñ_0304_final.hwp

15_3oracle

0125_ 워크샵 발표자료_완성.key

PowerPoint 프레젠테이션

야쿠르트2010 9월재출

untitled

Something that can be seen, touched or otherwise sensed

Å©·¹Àγ»Áö20p

03.Agile.key


untitled

untitled

SW¹é¼Ł-³¯°³Æ÷ÇÔÇ¥Áö2013

Vol.259 C O N T E N T S M O N T H L Y P U B L I C F I N A N C E F O R U M

SchoolNet튜토리얼.PDF


사용시 기본적인 주의사항 경고 : 전기 기구를 사용할 때는 다음의 기본적인 주의 사항을 반드시 유의하여야 합니다..제품을 사용하기 전에 반드시 사용법을 정독하십시오. 2.물과 가까운 곳, 욕실이나 부엌 그리고 수영장 같은 곳에서 제품을 사용하지 마십시오. 3.이 제품은

Oracle9i Real Application Clusters

6주차.key

歯1.PDF

02-19~-44-하이퍼루프다시

ESP1ºÎ-04

<4D F736F F F696E74202D20B1E2BCFAC1A4BAB8C8B8C0C72DB0E8C3F8C1A6BEEE2DC0CCC0E7C8EF2E BC0D0B1E220C0FCBFEB5D>

13 Who am I? R&D, Product Development Manager / Smart Worker Visualization SW SW KAIST Software Engineering Computer Engineering 3

슬라이드 1

I 1 1) TESCO, 1993, ( 96, 98, 99) - : : 354 (19993 ~ , 1 =1737 ) - : 845 ( : 659 ) - : ) CM 9 (CM), CM , 2 CM, -

ÀÌÁÖÈñ.hwp

기술 이력서 2.0

Journal of Educational Innovation Research 2018, Vol. 28, No. 3, pp DOI: NCS : * A Study on

ARM01

I&IRC5 TG_08권

05( ) CPLV12-04.hwp


원고스타일 정의

감각형 증강현실을 이용한

<30322D28C6AF29C0CCB1E2B4EB35362D312E687770>

2013<C724><B9AC><ACBD><C601><C2E4><CC9C><C0AC><B840><C9D1>(<C6F9><C6A9>).pdf

06_ÀÌÀçÈÆ¿Ü0926

전용]

untitled

<31B1E8C0B1C8F128C6ED2E687770>

Microsoft Word - 1-차우창.doc

pdf 16..

step 1-1

PJTROHMPCJPS.hwp

00내지1번2번

슬라이드 제목 없음

대한한의학원전학회지26권4호-교정본(1125).hwp

#Ȳ¿ë¼®

6 영상기술연구 실감하지 못했을지도 모른다. 하지만 그 이외의 지역에서 3D 영화를 관람하기란 그리 쉬운 일이 아니다. 영화 <아바타> 이후, 티켓 파워에 민감한 국내 대형 극장 체인들이 2D 상영관을 3D 상영관으로 점차적으로 교체하는 추세이긴 하지만, 아직까지는 관

1.장인석-ITIL 소개.ppt

야쿠르트2010 3월 - 최종

한국성인에서초기황반변성질환과 연관된위험요인연구

< C6AFC1FD28B1C7C7F5C1DF292E687770>

<BFACBCBCC0C7BBE7C7D E687770>


Domino Designer Portal Development tools Rational Application Developer WebSphere Portlet Factory Workplace Designer Workplace Forms Designer

Journal of Educational Innovation Research 2017, Vol. 27, No. 2, pp DOI: : Researc

2011´ëÇпø2µµ 24p_0628

4 CD Construct Special Model VI 2 nd Order Model VI 2 Note: Hands-on 1, 2 RC 1 RLC mass-spring-damper 2 2 ζ ω n (rad/sec) 2 ( ζ < 1), 1 (ζ = 1), ( ) 1

레이아웃 1

<BBEABEF7B5BFC7E22DA5B12E687770>

Transcription:

Embedded System Lab. II

/ // Embedded System Lab. II 2

embedded system? Embedded systems are key elements of our society today An adequate supply of competent designers is a rate limiting factor in our economies ability to grow As processing power increases, we ll be able to do incredible things that we haven t begun to imagine. It is a discipline of Computer Science that has traditionally been: Ignored Conceded to Electrical Engineering Departments Treated as a cast-off because of its intimacy with hardware Not well understood because of its special niche Engineers who are experienced embedded system designers are in short supply and high demand It s a really fun topic! Embedded System Lab. II 3

Embedded System? Dedicated to a specific task or tasks Rich variety of microprocessors ( over 300 types ) Designs are cost-sensitive Have real-time performance constraints Used with Real-Time Operating Systems (RTOS) Software failure can be life-threatening May have constraints on power consumption Operate over a wide-range of environmental conditions Fewer system resources than a desktop system All code might be stored in ROM Require specialized design tools May have on-chip debugging resources Embedded System Lab. II 4

Embedded System In general, there is no architectural link to standard platforms PC ( Win9X, NT, XP, Linux), MAC, HP, Sun are considered the standard platforms Almost every embedded design ( hardware and software ) is unique The hardware and software are highly integrated and interdependent Typically, have moderate to severe real-time constraints Real-time means system must be able to respond to the outside world May or may not have Operating System ( O/S ) services available No printf() for debugging when there is no terminal! Tolerance for bugs is 1000X ( or more ) lower in embedded systems than in desktop computers. May be life-threatening consequences if system fails Often engineered for the highest possible performance at the lowest cost Performance may not be an important consideration Most likely to have power constraints Embedded System Lab. II 5

/ /, Co-Design Embedded System Lab. II 6

7 Embedded System Lab. II 7

AMD daniel Mann Processor Selection Phase Packaged benchmarks Past Experience Other Similar Designs Applications support Instruction Set Simulator Benchmarking tools Enter Here Literature Compiler Tool Chain Architectural Simulator Evaluation Board Design Phase Software Design Team Customer Benchmarks Design Win Hardware Designer(s) Compiler Tool Chain ASIC Logic Simulator Logic Analyzer Oscilloscope Instruction Set Simulator Evaluation Board Out-of-Circuit Emulation Initial hardware without working memory system Initial Software Logic Analyzer In-Circuit Emulator Oscilloscope Software running on Hardware Software Performance Analysis In-Circuit Emulation Logic Analyzer/Preprocessor JTAG Emulation ROM Emulation MiniMON29K SW/HW Integration Phase Maintenance and upgrade of existing products Courtesy of Daniel Mann Embedded System Lab. II 8

? / Embedded System Lab. II 9

???? / / ROM Emulator ICE(In Circuit Emulator) (on-chip) Embedded System Lab. II 10

Cost of Goods Real-time Constraints Legacy Code Power Budget Time to Market Performance Landmines Tool Support Embedded System Lab. II 11

-1 Issue 1: Width of data path Clock speed: RAW MIPS Processor architecture issues Single or multiple processors Embedded System Lab. II 12

-2 Issue 2: Integration of functions Microprocessor or micro-controller? Review: A microprocessor contains the basic CPU functionality, and little more A micro-controller combines the CPU core with peripheral devices The microprocessor is usually the leading edge of performance Lowest level of integration Highest cost Higher levels of integration imply Lower system costs Greater reliability As up matures the core moves into the uc families Embedded System Lab. II 13

-3 Higher level of integration ( continued ) Less power Faster Higher processor costs Issue 3: Use a microcontroller Peripheral choices ( timers, ports, serial comm., A/D, etc. ) On-chip, RAM, ROM, Flash Power requirements Sleep modes Commercially available or build to order ( Motorola 683XX) Embedded System Lab. II 14

Micro-controller vs System-on-Silicon Application Specific Integrated Circuit (ASIC) Processor is soft, the processor exists as an encoded HDL Licensed foundries can fabricate CPU core design into actual Intellectual Property from ARM, MIPS, Motorola Mcore, ARC Companies do not build ASICs, called Fabless vendors Customizable CPUs Multiple CPU cores Mix RISC and DSPs Designs out with 64 (and more ) 32-bit RISC and DSP cores Embedded System Lab. II 15

-5 Issues 4 and up: Software considerations Legacy code base for existing architecture C code may or may not be portable Assembly code is definitely not portable Instruction set architecture issues Certain ISAs may be better for certain problems Engineers may be more familiar with certain instruction sets Embedded System Lab. II 16

-6 Not so obvious considerations: Compatibility with existing tools Processor vendor s roadmap for the future and long-term support Design assistance, availability of IP Legacy code C is portable, assembly code is not Pricing and availability Availability of third-party tools ( Emulators, debuggers) Power consumption (power budget) And There are lots to choose from! Currently there are over 100 32-bit embedded processors About 1000 different total devices Embedded System Lab. II 17

H/W SW Recall the beginning phase of the embedded lifecycle A significant effort usually goes into partitioning the algorithm between the hardware components and the software components Critical part of the design because mistakes made here can cause an inferior product to result Software team usually tasked with picking up the pieces Today, partitioning is becoming an almost seamless process Tools can be used to create a generalized algorithmic solution (UML) and then partitioned into software and hardware components Embedded System Lab. II 18

H/W SW The hardware and software in an embedded system work together to solve a problem ( algorithm ) The decision about how to partition the software components and the hardware components is usually dictated by speed and cost Dedicated hardware is fast, inflexible and expensive Reconfigurable hardware is fast, flexible and more expensive Software is slower, more flexible and cheaper Embedded System Lab. II 19

H/W SW There has been a revolution in hardware design called Hardware Description Languages (HDL) Commonly known as Verilog and VHDL Like C, but includes extensions for real time and other hardware realities Abstracts the design of hardware away from gates and wires to algorithms and state machines Hardware design is described in HDL and then compiles to a recipe for the silicon FAB to build the circuit Called Silicon Compilation A single HW designer can now develop an IC that required entire teams several years ago This has led to whole new concept of Systems-on-a-chip, or SOC Embedded System Lab. II 20

HW/SW Iterate Software SW Process Design Algorithm Write C/C++ Code Write stub-code to simulate HW Compile to Object code Co-design Phase Integrate Define the IP Partition IP between HW and SW Design Algorithm Write HDL Code ( Dialect of C ) Write test vectors Run Simulations Compile to Si foundry database HW Process Re-spin the ASIC Key Point The differences between the process of designing hardware (ASIC ) and the process of designing software are disappearing Embedded System Lab. II 21

Situation Worse in S/W Billion $/Year 45 40 35 30 25 20 15 10 5 0 DoD Embedded System Costs Software Hardware 1980 1982 1984 1986 1988 1990 1992 1994 Embedded System Lab. II 22

On-going Paradigm Shift in Embedded System Design Change in business model due to SoCs Currently many IC companies have a chance to sell devices for a single board In future, a single vendor will create a System-on-Chip But, how will it have knowledge of all the domains? Component-based design Components encapsulate the intellectual property Platforms Integrated HW/SW/IP Application focus Rapid low-cost customization Embedded System Lab. II 23

What is IP? Predesigned, preverified silicon circuit block, usually containing 5000 gates, that can be used in building larger application on a semiconductor chip Embedded System Lab. II 24

IP-based Design Embedded System Lab. II 25

UML and Co-design Two new technologies have emerged that address this desire to focus on the algorithm and not the partition Unified Modeling Language (UML) ilogix, ObjecTime, Cadence, CoWare HW/SW Codesign Synopsys, Mentor Graphics, VAST UML products, such as Statemate and Rhapsody (ilogix) and Co-design products, such as Seamless ( Mentor Graphics ) blur the distinction between hardware and software Output of UML tool is C++ application code and/or VHDL code Partition decisions are made by which code is generated Objective: Design the algorithm in an implementation independent way Let the automatic code generator do the grunt work Embedded System Lab. II 26

Unified Modeling Language UML is a way to represent the finite-state behavior of an embedded system: A finite state machine is an abstract machine that defines a set of conditions of existence ( called states ), a set of behaviors or actions performed in each of these states, and a set of events that cause changes in states according to a finite and well-defined rule set. Consider some examples of a finite state machine Vending machine Gas pump Flight control system Embedded System Lab. II 27

HW/SW Co-verification After a design is partitioned and separate HW and SW development is proceeding, how do you know that you ll get it right? Re-spinning an ASIC is costly Fixing a problem in software will reduce performance HW/SW Co-verification focuses on validating the correctness of the design across the HW/SW interface Embedded System Lab. II 28

- %..( page) / 60% Embedded System Lab. II 29

System Specification & Design HW & SW Design/Debug Prototype Debug System Test 37% 20% 31% 12% 51% of Time Source: Dataquest Cost to fix a problem Maintenance and upgrade Embedded System Lab. II 30

Integration Hardware/Software integration The separate hardware designers, firmware designers and software designers have completed unit testing their code The hardware has been built and passes the smoke test The hardware is turned over to the software team Load the software image Validate the correctness of the hardware performance against the software design Integrate their software with the hardware Find the bugs Test for performance and reliability Embedded System Lab. II 31

Debugging embedded systems is made more difficult because of the added dimension brought about by untested hardware The process of debugging an embedded system is usually referred to as Hardware/Software Integration Identifies this as a unique process The Integration Loop Yes Start New Test? Yes Run Test Pass Test? No Debug Stop No Re-design physical h/w and/or s/w Embedded System Lab. II 32

-1 Use an oscilloscope to look at the parametric performance of the hardware system Is the power supply voltage stable? Minimal AC ripple Within limits Do the bus signals look clean? Ringing on the waveform is within bounds System noise is within acceptable bounds All busses are properly terminated, no reflections Is the clock(s) distribution clean? Stable waveform without noise, undershoot or overshoot Clock skew within acceptable limits Embedded System Lab. II 33

-2 Verify that the processor to memory interface is stable Memory set-up times are within acceptable limits Hold times are long enough Proper timing on reads and writes Use an In-Circuit Emulator to force simple memory test programs No need to load a program to test memory Use a Logic Analyzer to look at bus activity to verify that all signals are understood Verify that the memory decoding logic is working properly Embedded System Lab. II 34

-3 Use emulator to force accesses to peripheral devices Memory access conflicts All glue logic PAL equations are correct Read and Write to ASIC registers Read and write to registers of other peripheral devices Use an ICE (In Circuit Emulator) to load simple HW test programs (diagnostics) Diagnostics will exercise hardware and verify reliability Will not verify functionality Embedded System Lab. II 35

An RTOS enables a design team to create a complex system that responds to every event with the right action at the right time, every time. Provides mechanisms to precisely synchronize a large number of tasks Reliable An RTOS provides mechanisms to handle faults, bugs, and other unexpected events that inevitably affect any system of embedded software When the level of complexity of an embedded system is such that partitioning the software into smaller, independently executing modules significantly lowers the overall design complexity and leads to greater system reliability Time-to-market pressure balances cost of the RTOS Embedded System Lab. II 36

RTOS - Pre-emptive schedule General purpose operating systems are very democratic Every task or process has equal access to the CPU Scheduling decisions are based upon time sharing Tasks get to execute without interruption until their time slice is up Problem: If a less important task is running and a more important, deadline dependent task is pending, then the higher priority task must wait its turn RTOSes are different! Pre-emptive scheduling allows the higher priority task to take over the CPU from lower priority tasks Extends from application level code to drivers and interrupts Embedded System Lab. II 37

RTOS - Predictability RTOSes must provide the designers with predictable performance data for system latencies Need to know best case and worst case scenarios for Task switching times Elapsed time from the completion of the last instruction of the prior task to the beginning of execution of the first task of the replacement process Measure of the overhead caused by the RTOS Interrupt handling Elapsed time from the arrival of the interrupt signal to the beginning of execution of the first instruction of the interrupt handler Worst case timing for a lower priority interrupt must take into account the time required to process all higher priority interrupts Embedded System Lab. II 38

RTOS - economic factors Generally, we view RTOSes as intellectual property Pay a royalty to RTOS vendor for each copy of the RTOS that you deliver in your application ( annuity ) Example: WinCE royalty ~$15 per copy volumes > 10000 Cost of tools Some RTOS vendors supply complete development and debug environments for their customers One-stop shopping Products are well-integrated and work together Board support packages (BSP) Integrating an RTOS with your hardware platform ( target system ) is a nontrivial exercise Requires expert knowledge of the O/S and hardware Is there an existing BSP for your hardware? Pay the O/S vendor to do it? ( $50K - $1M ) Embedded System Lab. II 39

RTOS - CPU issues Has an RTOS been written and fine-tuned to your CPU choice? Take advantage of specialized performance hardware on CPU? Example: May contain shadow registers for rapid task switching May contain special registers for storing task tables context switching. Key kernel functions written in assembly language for maximum performance Has performance of RTOS been fully characterized with your CPU? Does the RTOS support the peripheral register set on your microcontroller? Example: PowerPC 860 contains 200 registers for peripheral devices ( timers, ethernet ports, other O/S relevant I/O devices) require support Support for virtual and protected memory management? Embedded System Lab. II 40

RTOS - Application support How many simultaneous tasks can the RTOS support? How many interrupts can be supported? Does RTOS vendor provide support services for specialized applications? FAA and FDA certification of O/S for mission critical applications Protocol stacks for telecomm and datacomm ( TCP/IP ) Architecture of RTOS Flat memory model Applications and RTOS are built and linked as a single executable Entire address space of processor is available to O/S and all applications Generally fast, but very susceptible to crashes due to buggy code Errant pointers can overwrite critical kernel code Embedded System Lab. II 41