SE-3910 Real-time Systems Week 10, Class 3 Loop jamming CS2852 5/21/2018 SE-3910 Real-time Systems Week 10, Class 3 Loop jamming Class Climate Survey SE3910 Class 5-1 Yoder PPT notes Spring 2014 Print 1-5,11,13-21 Instructor: Print notes Tentative Class Objectives: Explain why writing a file causes a pin to “light” Explain why reading a file reads a 3.3/0V value from a pin Create programs using file I/O Create new capabilities for the GPIO library Create new kernel modules for the BeagleBone? - Because it’s cool - To give deeper hardware/software understanding - To give familiarity with the whole beagle-bone process Explore the Beaglebone OS source code Explain key design decisions made by Beaglebone / Linux OS writers Contrast these decisions with Classic Linux and Windows decisions For HW: Explain the concept of rise time and fall time. Make sketch or figure: Using the oscilloscope, measure the time difference between two signals. Classify events as either being synchronous or asynchronous, periodic, aperiodic, or sporadic Explain the difference between an embedded and non-embedded system Explain the difference between a real-time system and a non-real-time system Identify the key components of the Beaglebone platform Explain why the Beaglebone changes operating frequency under different power conditions Identify the key hardware interfaces of the beaglebone Explain the concept of a cape (daughterboard) Calculate the software GPIO pin number from an expansion port header definition Understand how to read a basic schematic Explain the concept of a dropping resistor Explain the concept of a pull up and a pull down resistor Short the beaglebone’s output to ground Connect the input directly to 5V Connect the input through a resistor to 5V Discuss peak voltage again Potential Topics Piazza Link to Schilling’s PDF Slides Future Quick-quizzes: Labeling voltage, current etc. Why frequency scale? What is the advantage of turning down frequency? HW: How to set frequency to minimize power consumption given full-speed CPU load? (for after scheduling later)Suppose a program blocks X time, and runs Y time while waiting for data, per period. What is the CPU load? Future potential objectives: Discuss two kinds of interrupt systems: Idle main “background” main etc. Identify possible values for hyperperiod and frames in cyclic scheduling Compare and constrast round-robin and cyclic scheduling SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling, Some from Dr. Hornick, etc. Dr. Yoder
What is loop jamming? Aka “loop fusion” Taking two (or more) loops and “jamming” or “fusing” them into a single loop See source https://faculty-web.msoe.edu/yoder/se3910/code/class10_3_LoopJamming/ SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling
Why Loop Jamming? CS2852 5/21/2018 Note: These results are in Java… SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
How to jam loops? [See source] https://faculty-web.msoe.edu/yoder/se3910/code/class10_3_LoopJamming/ SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling
End-of-quarter Survey http://bit.ly/1n1ODFW https://www.polleverywhere.com/survey/Cvjnc1Zxj (Also on slides following) SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling
http://www.polleverywhere.com/free_text_polls/CYq5CKO7bbUweNA CS2852 5/21/2018 What surprised? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/PHhTsOyf7nlvUY8 CS2852 5/21/2018 Excited SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/LLAO3V0pQQkS7dy CS2852 5/21/2018 bored SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/multiple_choice_polls/c8T3q49whOf35En CS2852 5/21/2018 Is HW helpful? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/6VGyPCsZDZ1U9RP CS2852 5/21/2018 HW + SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/5ijeBFNwpokt5rU CS2852 5/21/2018 HW delta SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/multiple_choice_polls/lYk8r7F65jD7iRH CS2852 5/21/2018 Lecture learn SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/multiple_choice_polls/XCLONp5znP31hnt CS2852 5/21/2018 Lectures prepare SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/kpNMOPYEVJ2Ae3m CS2852 5/21/2018 Lectures + SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/kOTrJEeUeJA3u9G CS2852 5/21/2018 Lectures delta SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/multiple_choice_polls/a1w8ZnHKc3pcP8t CS2852 5/21/2018 Labs learning SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/DZuYAcmrL0nxANt CS2852 5/21/2018 Labs + SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/LJkLLfps9rOesAm CS2852 5/21/2018 What could be improved? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/multiple_choice_polls/FHmUO1YAWzbSgwn CS2852 5/21/2018 C SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/kUlVg8cBVItpLzt CS2852 5/21/2018 C comments SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/multiple_choice_polls/kY72iG5WShobT8H CS2852 5/21/2018 Embedded SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder
http://www.polleverywhere.com/free_text_polls/UybT02T9w5HmgFQ CS2852 5/21/2018 Embedded comments SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder