Microprocessors, Lecture 1: Introduction to Microprocessors

Similar documents
Introduction to Embedded Systems

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

ECE 111 ECE 111. Advanced Digital Design. Advanced Digital Design Winter, Sujit Dey. Sujit Dey. ECE Department UC San Diego

ELCT 912: Advanced Embedded Systems

EMBEDDED SYSTEM BASICS AND APPLICATION

ECE 471 Embedded Systems Lecture 2

Microprocessors And Microcontroller

Lecture (01) Introducing Embedded Systems and the Microcontrollers By: Dr. Ahmed ElShafee

ELC4438: Embedded System Design Embedded Processor

CSC 170 Introduction to Computers and Their Applications. Computers

Calendar Description

DE5 Thursday, September 09, 2010

Introduction to Embedded Systems

3.1 Description of Microprocessor. 3.2 History of Microprocessor

Lecture 1. Course Overview and The 8051 Architecture

ECE 1160/2160 Embedded Systems Design. Midterm Review. Wei Gao. ECE 1160/2160 Embedded Systems Design

Microprocessor Systems

Computer Systems. Communication (networks, radio links) Meatware (people, users don t forget them)

CMPE 310: Systems Design and Programming

Module 2: Introduction to AVR ATmega 32 Architecture

Computer Architecture!

Embedded System Current Trends

Computer Architecture Dr. Charles Kim Howard University

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Introduction to a Typical PC. Freedom High School

Overview of Microcontroller and Embedded Systems

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Computer Architecture. Fall Dongkun Shin, SKKU

Summer 2003 Lecture 1 06/09/03

Somes French translations :

Downloaded from various sources on the NET

Homeschool Enrichment. The System Unit: Processing & Memory

Information Communications Technology (CE-ICT) 6 th Class

Computer Hardware Requirements for Real-Time Applications

EC EMBEDDED AND REAL TIME SYSTEMS

Fundamentals of Computer Design

Computer Architecture Dr. Charles Kim Howard University

ARM Ltd. ! Founded in November 1990! Spun out of Acorn Computers

PC I/O. May 7, Howard Huang 1

Intentionally Blank 0

ELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers. Eng. Salma Hesham

Chapter 1: Introduction. Oregon State University School of Electrical Engineering and Computer Science

Fundamentals of Computers Design

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

Instruction Set Principles and Examples. Appendix B

Computer Architecture

Anand Raghunathan

1 Microprocessors 2 Microcontrollers 3 Actuation sensing, process control

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

EC-801 Advanced Computer Architecture

Computer Architecture!

EE382V: System-on-a-Chip (SoC) Design

TUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.

Basic Components of Digital Computer

Computer Organization + DIGITAL DESIGN

Silicon Motion s Graphics Display SoCs

BASIC INTERFACING CONCEPTS

CPE 323 MSP430 INSTRUCTION SET ARCHITECTURE (ISA)

Microprocessor (COM 9323)

Embedded Systems. 8. Hardware Components. Lothar Thiele. Computer Engineering and Networks Laboratory

VLSI Design Automation

Computer Architecture!

Computer chip: A very small pieces of silicon or other semi-conducting material onto which integrated circuits are embedded Circuit board: A thin

Computer Organization & Assembly Language Programming. CSE 2312 Lecture 2 Introduction to Computers

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

CPE/EE 421 Microcomputers

EE 308: Microcontrollers

Introduction to Embedded Systems

Operating Systems: Internals and Design Principles. Chapter 1 Computer System Overview Seventh Edition By William Stallings

ECE 471 Embedded Systems Lecture 2

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

Multiple Choice Type Questions

Embedded Computation

Embedded Systems. 7. System Components

ARMv8 instructions set analysis. Student: Thomas Hochstrasser Supervisor: Prof. Dr. Ulrich Brüning

Davide Rossi DEI University of Bologna AA

SEE3223 Microprocessors. 1: Embedded Systems. Muhammad Mun im Ahmad Zabidi

Technology in Action. Chapter 8 Mobile Computing: Keeping Your Data on Hand. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

AltiVec Center of Excellence Overview Motorola s Global Software Group (GSG) is pleased to announce the formation of the AltiVec Center of Excellence.

Lecture 1: Introduction to Microprocessors

Microprocessors and Microcontrollers. Assignment 1:

Embedded Systems Dr. Santanu Chaudhury Department of Electrical Engineering Indian Institute of Technology, Delhi. Lecture - 10 System on Chip (SOC)

EE 354 Fall 2015 Lecture 1 Architecture and Introduction

COMPUTER ARCHITECTURE

Computer Organization & Assembly Language Programming (CSE 2312)

Microprocessor-Based Systems

Introduction to Computers. Joslyn A. Smith

Design of DMA Controller Using VHDL

HW/SW Co-design. Design of Embedded Systems Jaap Hofstede Version 3, September 1999

Embedded Systems: Architecture

VLSI Design Automation

Configurable Processors for SOC Design. Contents crafted by Technology Evangelist Steve Leibson Tensilica, Inc.

CSC 553 Operating Systems

SYSTEMS ON CHIP (SOC) FOR EMBEDDED APPLICATIONS

4.03 IT PowerPoint. Objective 4.03 Understand Information Technology activities and careers.

Hardware/Software Codesign

VISUAL SUMMARY. The System Unit

Computer Architecture

Computer Basics. Lesson 1 Introduction to Computers. Edited by C. Rhodes 08/11

Transcription:

Microprocessors, Lecture 1: Introduction to Microprocessors

Computing Systems General-purpose standalone systems (سيستم ھای نھفته ( systems Embedded 2

General-purpose standalone systems Stand-alone computer systems: used for processing and data management purposes Example: desktop PCs, laptops, tablets, servers, supercomputers, They are general-purpose: can be programmed to perform any task A computer is used for: web browsing, gaming, multimedia, database server, word processing, CAD, scientific applications, 3

General-purpose standalone systems Desktop processors Intel and AMD processors Server processors Intel, AMD, IBM, SUN, Tablet processors ARM-based System-on-Chips 4

General-Purpose Processor General-Purpose Processor Processor designed for a variety of computation tasks Each processor has an ISA and a microarchitecture ISA: Instruction Set Architecture ISA determines the set of instructions that a processor supports (and registers and addressing modes) X86 is the dominant ISA for PCs ARM is the dominant ISA for tablets and smartphones 5

A Simple (Trivial) Instruction Set Assembly instruct. First byte Second byte Operation MOV Rn, direct 0000 Rn direct Rn = M(direct) MOV direct, Rn 0001 Rn direct M(direct) = Rn MOV @Rn, Rm 0010 Rn Rm M(Rn) = Rm MOV Rn, #immed. 0011 Rn immediate Rn = immediate ADD Rn, Rm 0100 Rn Rm Rn = Rn + Rm SUB Rn, Rm 0101 Rn Rm Rn = Rn - Rm JZ Rn, relative 0110 Rn relative PC = PC+ relative (only if Rn is 0) opcode operands 6

Sample Programs C program Equivalent assembly program int total = 0; for (int i=10; i!=0; i--) total += i; // next instructions... 0 1 2 3 Loop: 5 6 7 Next: MOV R0, #0; // total = 0 MOV R1, #10; // i = 10 MOV R2, #1; // constant 1 MOV R3, #0; // constant 0 JZ R1, Next; // Done if i=0 ADD R0, R1; // total += i SUB R1, R2; // i-- JZ R3, Loop; // Jump always // next instructions... Compiler knows the machine instructions and translates the programs into machine language 7

Hardware accelerator Implementing time-consuming algorithm on hardware In processors, it is also called Co-processor Not programmable: only a fixed function CPU Co-Processor (accelerator) Arbiter Arbiter 8 Program Memory Data Memory Data Memory

Hardware accelerator The most important accelerates in processors are vector processing units (SIMD unit) SIMD= single instruction multiple data To accelerate processing on arrays 9

Processors In addition to general-purpose processors, there are other processor types ASIP ASIC GPU ASIP and ASIC are used in embedded systems 10

Application-Specific Instruction set Processor (ASIP) A processor that is programmable A general purpose processor + specific hardware resource The instruction-set is optimized for a group of applications Base instruction set + customized instructions Specific hardware resource implements the customized instructions Examples: DSPs (Digital Signal Processor) NPs (Network Processor) GPUs (Graphical Processing Unit) 11

Application Specific Instruction-set Processor Program with basic instructions set I t 1 = a * b; t 2 = b * 0xf0; ; t 3 = c * 0x12; t 4 = t 1 + t 2 ; t 5 = t 2 + t 3 ; t 6 = t 5 + t 4 ; a b c 0xf0 * * * + + + 0x12 Custom Logic *: 2 clock cycles +: 1 clock cycles Execution time: 9 clock cycles

Application Specific Instruction-set Processor (cont d) Program with extended instructions t 1 = extop1(a, b, 0xf0); t 2 = extop2(b, c, 0xf0, 0x12); t 3 = t 1 + t 2 ; a b c 0xf0 extop1 * * * + + + 0x12 extop2 Extended Instruction Set: I extop1 expop2 extops: 2 clock cycles +: 1 clock cycles Execution time: 5 clock cycles Speedup: 1.8

ASIP example- DSP A Digital signal Processor (DSP) has instructions that efficiently executes the common signal processing algorithms Typical DSP algorithms includes: Filtering, DFT, DCT Speech and image: Compression, decompression, encryption, decryption Modems: Equalization, noise and echo cancellation, better SNR Communication channel: encoding, decoding, equalization 14

ASICs Application-specific IC Digital circuit designed to execute one program Features Contains only the components needed to execute a single program No program memory Benefits Fast (optimized) Low power Small size

Design spectrum Excellent tradeoff between efficiency of ASICs and flexibility of CPUs

GPU Graphic processing unit Used for graphic processing and other parallel algorithms 17

Embedded System Embedded systems: information processing systems that are embedded into a larger product and that are normally not directly visible to user Single or limited purpose: designed to perform a single or a group of similar tasks An embedded system may perform A single task that remains fixed during the system life-time example: video-projector, printer, A group of tasks Example: a cell phone 18

Embedded systems More than 90% of computer systems are embedded! 19

Embedded systems- classification Monitoring and control functions Vehicle control, power plant control Information-processing functions Telecommunication switches, Multimedia (mp3 player), etc. A simple LCD board controller A complex telecommunication switch 20

Embedded systems Simple embedded systems are often use microcontrollers Large and complex embedded systems are composed of many devices such as FPGAs, CPUs, ASIPs, hardware accelerates, memory modules, interfaces, analog devices,. 21

Embedded systems- general picture Different application type have different requirements and characteristics 22

Embedded systems-control-based Most peripherals are organized to monitor the outside world and control it Do not require large data storage and transfer Reliability, low-cost, and low-power operation is important Microcontrollers are the best choice for this purpose A processor core with many peripheral integrated inside a single chip 23

Microcontrollers A smaller computer On-chip RAM, ROM, I/O ports... Example AVR, Intel s 8051, Zilog s Z8, and PIC 16X 24

General Purpose Microprocessors vs. Microcontrollers 25

Most common microcontrollers 8-bit microcontrollers AVR PIC HCS12 8051 32-bit microcontrollers ARM PIC32 26

Introduction Technological advances Today s chip can contains 7 billion transistors The consequences Components connected on a board can now be integrated onto single chip Hence the development of system-on-chip design 27

SoC An SoC may contain Custom hardware blocks A.K.A. Hardware accelerator DSP blocks Embedded CPU Embedded Memory Real World Interfaces (USB, PCI, Ethernet) Software (both OS and Applications) Mixed-signal Blocks DAC, ADC FPGAs 28

29 SoC evolution

30 SoC Example- a handheld device

SoC benefits Reduce size Low cost Reuse Low power High performance High reliability 31