Beruflich Dokumente
Kultur Dokumente
Processor and
Memory Organization
Asst. Prof. Suree Pumrin, Ph.D.
Semester
Se
este 1/2553
/ 553
Topics
7)
Processor Performance
Processor Selection
in Embedded System (1)
1)
2)
3)
4)
5)
6)
7)
8)
10
Processor Selection
in Embedded System (2)
9) On-chip DMA controller
10) Interrupt System
11) Advanced Processing Units
12) Harvard or Princeton Architectures for
memory organization
i ti
13) RISC or CISC or RISC core with CISC like
instruction set
14) On-chip compiler
15) AOs feasibility
16) IO Mapped IO space like 80x86 or Memory
mapped IOs
11
12
13
14
N t
Network
kS
Switching
it hi S
System
t
15
16
Software Concept
17
18
19
20
A t
Automatic
ti Washing
W hi M
Machine
hi
Needs
N
d mass manufacturing
f t i th
therefore
f
masked ROM, needs EEPROM for
current machine status, RAM for
y, A
variables and stack only,
Microcontroller on-chip 256 byte RAM,
4 kB ROM and 128 byte EEPROM
suffice [Refer Example 2.6a pp. 69 for
details]
2142492 Selected Topics in
Automotive Engineering I
21
22
Di it l camera
Digital
23
24
Functions, Processes
Functions
Processes, Data and
Stacks of Memoryy
Segment wise memory allocation in four
segments; Code, Data, Stack and Extra
(for examples,
examples image
image, String)
25
26
Differentt Data
Diff
D t Structures
St t
att the
th
( )
Memoryy Blocks (1)
1)) Stacks Return addresses on the
nested calls, Sets of LIFO (Last In First
Out)) retrievable data,, Saved Contexts of
the tasks as the stacks
27
28
Differentt Data
Diff
D t Structures
St t
att the
th
( )
Memoryy Blocks (2)
2) Arrays One dimensional or
multidimensional
l idi
i
l
3) Queues Sets of FIFO (First In First
Out) retrievable data; Circular Queue
(Example a Printer Buffer); Block
(ExampleQueue (Example- a network stack)
29
30
Differentt Data
Diff
D t Structures
St t
att the
th
( )
Memoryy Blocks (3)
31
4) Table
5) Look up Table Look-up-table
Look up table row
first column points to another memory
block of a data structure data
6) List: In a list element, a data structure
off an item
it
also
l points
i t tto the
th nextt item
it
7)) Process Control Block [[Refer Chapter
p
8]
2142492 Selected Topics in
Automotive Engineering I
32
Memory Map
Map to show the program and data
allocation of the addresses to ROM, RAM,
EEPROM or Fl
Flash
h iin th
the system
t
Figure 2.5
2 5 Four memory allocation maps
maps.
2142492 Selected Topics in
Automotive Engineering I
33
34
P t d I/O vs Memory
Ported
M
Mapped
M
d I/O
D i Add
Device
Addresses M
Map
Device control and status addresses
and port address remains constant
and are not re-locatable in a program
as the glue circuit (hardware) to
accesses these is fixed during the
circuit
i it d
design.
i
35
36
M
Memory
Mapped
M
d I/O
P t d I/O
Ported
37
38
DMA (Di
(Directt M
Memory A
Access))
Controller
External Devices can directlyy write and read
into the blocks of RAM using the DMA
controller when the buses are not in use
controller,
of the processor
39
The p
processor,, memory
y and devices are
interfaced (glued) together using a
programmable
p
g
circuit like GAL or FPGA.
The circuit consists of the address
decoders
decode
s as pe
per the
e memory
e oya
and
d de
device
ce
addresses allocated and the needed
latches multiplexers/ demultiplexers
40
Exercise
1. What are the common structure units in most
processors?
2. What are the special structural units in processors for
digital camera systems, real-time
real time video processing
systems, speech compression systems, voice
compression systems, and video games?
3. What do you mean by device registers and device
address?
41