The Hardware Side - Part 1: An Introduction
The Hardware Side - Part 1: An Introduction
The Hardware Side - Part 1: An Introduction
An Introduction
Hardware side of embedded systems begins with a highlevel view of the computing core of the systems.
Figure illustrates the sequence followed.
The computing core is the central hardware component in
any modern embedded applications.
Information
These
The
began
The
Data
Once
The
The
In
At
In
The
Figure
Figure 2.3 A Typical Bus Structure comprising Address, Data and Control
signals
Microprocessor
is an integrated
implementation of the central
processing unit portion of the machine;
it is often simply referred to as a CPU or
Datapath.
Microprocessors
differs in complexity,
power consumption, and cost.
Todays
microprocessors contains 5 to
10 million transistor and cost of few
dollars.
Microprocessors
Registers
Brings
Additions
memory
If
Used
Figure
The
Real-world
One
support
Its
DSP
Word
Word
The
Here
The
Lets
2.4. Understanding
Numbers
RESOULTION
RESOULTION
To
Truncation vs Rounding
error following the operation is
ER = Nrounded
computed
as
N ET = Ntruncate
The magnitude of the error now depends on the size of the number
2.5. Addresses
Each
If
Information
is accessed in memory by
giving its address.
Addresses
2.5. Addresses
For
Fig
2.5. Addresses
2.6. Instructions
An
Actions
2.6. Instructions
The
The
2.6. Instructions
Example
code fragment
x=y+z;
Here
2.6. Instructions
The
The
It
2.6. Instructions
In
C/C++,
Operators taking two operands are referred
to as binary operators.
Operators taking only a single operand have
an arity of one and are referred to as unary
operators.
An
Depending
2.6. Instructions
Examples
x=y;
Basic C/C++ assignment operation in
which the value of the operand
Operators taking y is assigned to
operand x .
It has two operands, making the
operator a binary operator.
Such an instruction is referred to as a
two-operand or two-address
instruction.
2.6. Instructions
EXAMPLE
z=x+y;
Adding
we
Both
For
are binary.
2.6. Instructions
For
If
Such
an instruction is referred to as a
three-operand or three-address
instruction.
2.6. Instructions
x=x+y;
Adding the two operands, x and y ; the
result is assigned to the operand x.
We have two operations: an addition
operation and an assignment operation.
Both are binary.
For addition operation, the operands x and
y are the sources, and the (temporary)
result is the destination.
2.6. Instructions
For
One
value
If
Such
2.6. Instructions
++x or x++;
Operation is to increment the value of the variable.
2.6. Instructions
2.6. Instructions
As
Some
At
2.6. Instructions
register
register
While
on the architecture of
microprocessor
ISC Complex Instruction Set Computer
ISC Reduced Instruction Set Computer
ISC,
so.
ISC,
Figure 2.15 Possible Interpretation of a set of Bits as Big Endian representation Little
Endian follows similarly
Sometimes
When
Instruction
At
The
Such
Classification
of instructions
Data transfer
Flow of control
Athmetic and Logic
register
Memory
input or output port