EECS 473 Review etc..

Slides:



Advertisements
Similar presentations
1-1 Welcome to: CSC225 Introduction to Computer Organization Paul Hatalsky.
Advertisements

INTRODUCTION OS/2 was initially designed to extend the capabilities of DOS by IBM and Microsoft Corporations. To create a single industry-standard operating.
Chapter 13 Embedded Systems
26-Jun-15 Getting Ready for CIT Labs Lab is scheduled for 3;00-4:30 Fridays in Moore 207 Lab is not in Towne 309 (Registrar has it wrong) Everyone.
1 Chapter 13 Embedded Systems Embedded Systems Characteristics of Embedded Operating Systems.
EECS 498 Advanced Embedded Systems Lecture 6: Rhyme, Reason & Review; Topic group formation.
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1-1 Welcome to: CSC225 Introduction to Computer Organization.
Win32 Programming Lesson 1: Why We’re All Here. Why We’re Here…  Okay, maybe that’s too grandiose  Windows – in particular Win32 Thirty-what?  What.
Scheduling policies for real- time embedded systems.
Embedded Linux Day 2. Stuffs HW1 posted today – Shooting for 1-2 hours. – Review scheduling stuff & licensing. HW0 in lab Sign up for group meetings for.
Stored Programs In today’s lesson, we will look at: what we mean by a stored program computer how computers store and run programs what we mean by the.
A Puzzle for You. Puzzle Someone is working for you for 7 days You have a gold bar, which is segmented into 7 pieces, but they are all CONNECTED You have.
EECS 473 Advanced Embedded Systems Misc. things Midterm Review.
CSCI1600: Embedded and Real Time Software Lecture 28: Verification I Steven Reiss, Fall 2015.
Review of the numeration systems The hardware/software representation of the computer and the coverage of that representation by this course. What is the.
An introduction to Digital Signal Processors (DSP) Using the C55xx family.
Review etc.. Want to get out of here by 10am Go see 373 projects.
CONCEPTS OF REAL-TIME OPERATING SYSTEM. OBJECTIVE  To Understand Why we need OS?  To identify Types of OS  To Define Real - Time Systems  To Classify.
Real-Time Operating Systems RTOS For Embedded systems.
Introduction to CSCI 1311 Dr. Mark C. Lewis
cFS Platforms OSAL and PSP
Computer Hardware What is a CPU.
Programmable Logic Devices
Topic 2: Hardware and Software
REAL-TIME OPERATING SYSTEMS
1.Introduction In the previous section you were introduced to the 'brain' of the computer, namely the CPU. You also learned about different things which.
EECS 473 Advanced Embedded Systems
September 2 Performance Read 3.1 through 3.4 for Tuesday
May 17th – Comparison Sorts
EECS 473 Advanced Embedded Systems
How will execution time grow with SIZE?
Unit OS9: Real-Time and Embedded Systems
Computer System Laboratory
Real Time Operating System
Real-time Software Design
CSCI/CMPE 3334 Systems Programming
EECS 473 Review etc..
Compiler Construction
Improved schedulability on the ρVEX polymorphic VLIW processor
Labs, etc. 19-Nov-18.
CDA 3100 Summer 2013.
Star Math PreTest Instructions For iPad users with the STAR app
Programming in JavaScript
Outline Module 1 and 2 dealt with processes, scheduling and synchronization Next two modules will deal with memory and storage Processes require data to.
CSCE 489- Problem Solving Programming Strategies Spring 2018
Intro to CIT 594
EECS 473 Advanced Embedded Systems
EECS 373 Advanced Embedded Systems
Algorithmic complexity: Speed of algorithms
PHYS 202 Intro Physics II Catalog description: A continuation of PHYS 201 covering the topics of electricity and magnetism, light, and modern physics.
EECS 473 Advanced Embedded Systems
EECS150 Fall 2007 – Lab Lecture #4 Shah Bawany
EECS 473 Review etc..
Instructor: Joel Grodstein
Wrap Up Don Porter.
EECS 473 Advanced Embedded Systems
CSCI1600: Embedded and Real Time Software
Programming in JavaScript
Welcome to: CSC225 Introduction to Computer Organization
Chapter 10 Multiprocessor and Real-Time Scheduling
Algorithmic complexity: Speed of algorithms
Professor: Shereen Khoja
CSE 373: Data Structures and Algorithms
Embedded System Development Lecture 12 4/4/2007
Chapter 1: Creating a Program.
CS a-spring-midterm2-survey
Physical Layer – How bits are sent
Some electrical issues related to the building of PCBs
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

EECS 473 Review etc.

Nice job folks Projects went well. Was nervous until the last minute, but things came out well. Same thing in 470 btw.  Still have a demo to do due to snow delay, but otherwise all done.

Schedule On Tuesday at 5pm HW2 is due. Late accepted with a penalty. See Piazza. On Tuesday by midnight the final report is due.  Be sure you are aware of the project report template document on the course page.   Final report should be pretty easy to do at this point. If your group does need an extension, let me know and we'll figure out something (probably a very small project score penalty).   Sometime Tuesday or Wednesday Matt or I will send out lab clean up instructions.   Most likely a few groups will get assigned parts of the SPL while others will be assigned parts of our lab. My office hours will be changing during the study days and final exams.  I’ll have those posted by end-of-the-day Tuesday.   Seth’s may also see some changes. Tuesday 12/20 the final exam is from 4-6pm in Dow 1010 and 1006. We hope to have grades done by 12/22 at noon if not sooner.

Topics: Interfacing Writing software interfaces for hardware Ideally have a standard interface for both hardware and programmer. Makes it easy to port software. Also means it’s obvious what hardware control to provide. Like any interface, standardization here is very powerful, but comes at a cost. Abstracting away interface issues makes things less efficient. Examples?

Real-time systems and scheduling "those systems in which the correctness of the system depends not only on the logical result of the computation, but also on the time at which the results are produced"; Time matters Hard, soft, firm deadlines Validation if very difficult How do you know the worst case timing? Really difficult to prove worst case. Cache misses, branch prediction, etc. make for a very complex situation. For safety critical things, even a “large engineering margin” isn’t enough. Need to actually figure it out.

Real-time systems and scheduling Rate monotonic scheduling Static priority scheme Assumes “all” tasks are periodic. Give priority to tasks with lower period. Total utilization helps figure if schedulable. If is less than n(21/n-1) (n=number of tasks) it is schedulable. If over 100% not schedulable If neither is true, do critical instant analysis. EDF Requires dynamic priorities Works if less than 100% utilization

Example Task Execution Time Period Priority T1 1 3 High T2 2.1 4 Low

Licensing What a viral license is Why it matters in embedded perhaps more than elsewhere. LKM Impact on business model Hardware people tend to use a lot of other people’s code (legally). Vendor’s driver code etc. Libraries.

Topic: Software platform Embedded OS Topic: Software platform We covered three or four basic platforms for software development for an embedded system. Barebones Write everything yourself Barebones plus libraries Import some useful libraries but otherwise write it all yourself. RTOS Basic scheduler with a lot of control Generally a fair bit of support. I/O devices, memory management, etc. Fast interrupts processing possible/reasonable/”easy” Full OS Give up a lot of control Have to deal with a very complex system Get lots (and lots) of software support Vision, databases, etc.

Free RTOS Tasks and scheduling Creating tasks (xTaskCreate) Semaphores Embedded OS Free RTOS Tasks and scheduling Creating tasks (xTaskCreate) Semaphores Deferred interrupt processing. Can dynamically change priority.

Embedded OS FreeRTOS Likely your final design problem will involve using FreeRTOS in some way. Review lab 4 We’ll provide sample code and/or basic functions You don’t need to memorize syntax, but you do need to understand.

Embedded Linux What limitations on realtime you might have Embedded OS Embedded Linux What limitations on realtime you might have Julia’s talk—what were the issues? Can be fairly small Things like busybox help I/O has a standard interface File model Not always ideal. But there is a lot of complexity here We spent a fair bit of time writing drivers. There wasn’t a question on this on the midterm, so good target for a final exam question…

Embedded OS Sample OS question What are the pros and cons of using a desktop OS (Linux, Windows etc.) in an embedded application? Give an example where you would certainly want to use such an OS and where you certainly would not want to.

Power integrity Discuss keeping Vcc/GND constant as possible. Recognize that our devices can generate current draw variations at a huge number of frequencies. Spikes or droops could break our device. Need caps. Small and large Get right values

Batteries Understand mAh Understand that mAh will be less if draw too quickly. Be able to work basic math using specific battery properties.

Example 800mAh battery. If we need 3.5V (or more) how long will this battery last at a 1.6A draw?

DSP We covered this for two reasons To give you a sense of what digital signal processing involves What are the characteristics of To make it clear that there can be specialized computational engines out there. What are the 3 common special-purpose processors we discussed?

Explain what this code is doing Int16 FIR(Uint16 i) { Int32 sum; Uint16 j, index; sum=0; //The actual filter work for(j=0; j<LPL; j++) index = ASIZE + i - j; if(i>=j) index = i - j; else sum += (Int32)in[index] * (Int32)LP[j]; } sum = sum + 0x00004000; // So we round rather than truncate. return (Int16) (sum >> 15);   // Conversion from 32 Q30 to 16 Q15. 1 2 3 4 5 X 1 2 3 4 5 B

DSP and FPGA Example (utterly unfair) question: Consider the structure on the right. If a flip-flop has a delay of 1ns A multiply has a delay of 10ns An add has a delay of 2ns What is the lowest clock period you could get for a 64-tap (64 multiplies) implementation of the structure on the right? (Yes, this involves 270 stuff)

Wireless

Modulation

Shannon–Hartley theorem We’ll use a different version of this called the Shannon-Hartley theorem. C is the channel capacity in bits per second; B is the bandwidth of the channel in hertz S is the total received signal power measured in Watts or Volts2 N is the total noise, measured in Watts or Volts2 Adapted from Wikipedia.

Sample questions for wireless

Power received vs. power sent. The Friis Transmission Formula tells us how much power we’ll receive. It is: Where: Pt is the radiated power Pr is the received power Gt is the gain of the transmitting antenna Gr is the gain of the receiving antenna λ is the wavelength R is the distance between antennas However, many of those terms aren’t easily available from real spec. sheets. Instead we do some algebra and get the following equation: Where f is the frequency in MHz, pt and pr are in dBm and gt and gr are in dBi.