1. Trang chủ
  2. » Giáo Dục - Đào Tạo

Embedded Systems Structure pdf

39 182 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Embedded Systems Structure
Tác giả Amr Ali Abdel-Naby
Trường học Unknown University
Thể loại Document
Năm xuất bản 2010
Thành phố Unknown City
Định dạng
Số trang 39
Dung lượng 294,5 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

o Between I/O devices, memories, and CPUo Data bus: transfers data o Address bus: transfers address information o Control bus: transfers control signals... • Instruction = Op Code + Oper

Trang 1

Embedded Systems Structure

Amr Ali Abdel-Naby Embedded Systems Developer

amraldo@hotmail.com

+2-012-3600-207

Trang 3

Part I: Embedded Systems Structure

• Composition of Embedded Systems

• Processor

• System Bus

• Memory Devices

• Peripherals

Trang 4

What is an Embedded System?

• A system composed of HW + SW to perform a dedicated function.

• On average, a human being meets 100s of embedded systems daily

Trang 5

Embedded System Components

Trang 6

Part I: Embedded Systems Structure

• Composition of Embedded Systems

• Processor

• System Bus

• Memory Devices

• Peripherals

Trang 7

The Processor

• The core of a digital system

• AKA CPU

• Performs arithmetic, control, data, and I/O operations

• A small IC that embeds everything a CPU needs is called a microprocessor.

• Nowadays, this IC is called a SOC

Trang 8

The Processor Structure

• Registers

• ALU: Arithmetic Logic Unit

• CU: Control Unit

• Internal Bus

CU

ALU Registers

Internal Bus

Trang 9

• Temporal storage inside the CPU

o Flip-flops + latches

• General purpose register

o Carry out program or data processing

Trang 11

Instruction Decoder

Trang 12

o Between I/O devices, memories, and CPU

o Data bus: transfers data

o Address bus: transfers address information

o Control bus: transfers control signals

Trang 15

MCU, MPU, and SoC

• System on Chip (SoC)

o Several semiconductors integrated into a single chip

o Modern CPUs are in SoC forms

o The whole system is integrated on a single chip

 SW + HW

• MCU, MPU

o Another naming of an SoC

 Depends on vendor

Trang 16

• A list of acceptable processor instructions

• Designed to achieve a specific result

Trang 17

Machine Code and Assembly

Language

• Machine code

o 1’s and 0’s only

o Understood by processor only

o Inconvenient to write a program with

Trang 19

Assembler and Assemble

Trang 20

• Instruction = Op Code + Operand

o Op Code is an action taken by a processor

o Operand is the target the Op Code should take action to

Op Code: ADD Operands: A, B, C Symantec: Add register B and register C and put result in register A

ADD A,B,C

Trang 22

Part I: Embedded Systems Structure

• Composition of Embedded Systems

• Processor

• System Bus

• Memory Devices

• Peripherals

Trang 23

System Bus Architectures

Data Memory

Trang 24

Part I: Embedded Systems Structure

• Composition of Embedded Systems

• Processor

• System Bus

• Memory Devices

• Peripherals

Trang 25

Types of Memories

Program and Data Storage High

Tens of ns NOR

Read and WRITE with block units, High Capacity Data Storage

Low Tens of ns

NAND Flash

Small size data or program storage High

Tens of ns EEPROM

Non-Volatile

Memory

Main memory Low

Tens of ns DRAM

Cache High

Several ns, Fast SRAM

Volatile

Memory

C/CsUse

CostSpeed

Types

Trang 26

Random Access Memories

 Does not need refreshing

o Dynamic RAM (DRAM)

Trang 27

Cache Memory System

System performance is lowered due

to slow bus and memory regardless

of high speed CPU

CPU

400 MHZ

Main Memory

10 MHZ

CPU + Cache

400 MHZ

Main Memory

10 MHZ

Improved performance by accompanying CPU with a high speed memory to store frequently

accessed instructions/data

Trang 28

Read Operation with a Cache

• Cache hit

o A requested instruction or data is in cache

o Cache performance is high when cache hit rate is high

• Cache miss

o A requested instruction or data is not in cache

o Cache performance is low when cache miss is high

Trang 29

Write Operation with a Cache

Trang 30

Memory Management Unit

Physical Address

Trang 31

Part I: Embedded Systems Structure

• Composition of Embedded Systems

• Processor

• System Bus

• Memory Devices

• Peripherals

Trang 32

I/O Device

• Exchanges information with CPU

• Includes digital and non-digital signals

• Only digital signals are exchanged directly with the CPU

CPU Signals

Device Signals

Trang 33

I/O Device Address Allocation

• Allocation is necessary to control each I/O device

• I/O mapped I/O

o Exclusive I/O address space

o Widely used in PC world

• Memory mapped I/O

o Uses unused regions of normal memory addresses

o Widely used in embedded world

Trang 35

I/O Resource Management

• Polling

o A program continuously checks the device

o Existence, data requests, operations completion, …

• Interrupt

o If a device needs a transaction, it interrupts the processor

o A processor executes a single instruction at a time

o Multitasking can be supported if interrupts are in use

• Direct Memory Access (DMA)

o Allows I/O device and memory to transfer data between each other without CPU interference

Trang 36

I/O Device

IRQ IRQACK

IRQ IRQACK

Trang 37

Interrupt Generation

• Interrupt request

o An I/O device requests an I/O operation with the CPU

o I/O device generates interrupt, so the CPU performs some operations without the program control

o The CPU performs some operations to decide whether to process the interrupt or not

o The code that processes the interrupt is called Interrupt Service Routine (ISR)

o Interrupt vector is the memory location where the ISR rsides

• Examples

o Data reception complete

Trang 38

Flow Control when Interrupt is Generated

Trang 39

Practice I: Embedded Systems Development

• Please refer to the labs handouts

Ngày đăng: 01/08/2014, 09:20

TỪ KHÓA LIÊN QUAN