3391ch9.pdf
(
217 KB
)
Pobierz
Microelectronics, Second Edition
9
Microprocessors
9.1 Introduction
.........................................
9
-1
9.2 Architecture Basics
...................................
9
-1
Complex Instruction Set Computer (CISC) and Reduced
Instruction Set Computer (RISC) Processors
•
Logical
Similarity
•
Short Chronology of Microprocessor Development
•
The Intel Family of Microprocessors
•
The Motorola Family
James G. Cottle
of Microprocessors
•
RISC Processor Development
9.1 Introduction
In the simplest sense, a
microprocessor
may be thought of as a central processing unit (CPU) on a chip.
Technical advances of microprocessors evolve quickly and are driven by progress in ultra large-scale
integrated/very large-scale integrated (ULSI/VLSI) physics and technology; fabrication advances, including
reduction in feature size; and improvements in architecture.
Developers of microprocessor-based systems are interested in cost, performance, power consumption,
and ease of programmability. The latter of these is, perhaps, the most important element in bringing a
product to market quickly. A key item in the ease of programmability is availability of program development
tools because it is these that save a great deal of time in small system implementation and make life a lot
easier for the developer. It is not unusual to find small electronic systems driven by microcontrollers and
microprocessors that are far more complex than need be for the project at hand simply because the ease
of development on these platforms offsets considerations of cost and power consumption. Development
tools are, therefore, a tangible asset to the efficient implementation of systems, utilizing microprocessors.
Often, a more general purpose microprocessor has a companion
microcontroller
within the same family.
The subject of microcontrollers is a subset of the broader area of
embedded systems
. A microcontroller
contains the basic architecture of the parent microprocessor with additional on-chip special purpose hard-
ware to facilitate easy small system implementation. Examples of special purpose hardware include analog
to digital (A/D) and digital to analog (D/A) converters, timers, small amounts of on-chip memory, serial
and parallel interfaces, and other input output specific hardware. These devices are most cost efficient for
development of the small electronic control system, since all externally needed hardware is already designed
onto the chip. Component count external to the microcontroller is therefore kept to a minimum. In addi-
tion, the advanced development tools of the parent microprocessor are often available for programming.
Therefore, a potential product may be brought to market much faster than if the developer used a more
general purpose microprocessor, which often requires a substantial amount of external support hardware.
9.2 Architecture Basics
In the early days of mainframe computers, only a few instructions (e.g., addition, load accumulator,
store to memory) were available to the programmer and the CPU had to be patched, or its configuration
changed, for various applications. Invention of microprogramming, by Maurice Wilkes in 1949, unbound
9
-
1
© 2006 by Taylor & Francis Group, LLC
9
-2
Microelectronics
the instruction set. Microprogramming made possible more complex tasks by manipulating the resources
of the CPU (its registers, arithmetic logic unit, and internal buses) in a well-defined, but programmable,
way. In this type of CPU the microprogram, or
control store
, contained the realization of the semantics
of native machine instructions on a particular set of CPU internal resources. Microprogramming is still
in strong use today. Within the microprogram resides the routines used to implement more complex
instructions and addressing modes. It is this scheme that is still widely used and a key element of the
complex instruction set computer(CISC) microprocessor.
Evolution from the original large mainframe computers with hard-wired logical paths and schemes for
instruction manipulation toward more flexible and complex instruction sets and addressing modes was
a natural one. It was driven by advances in semiconductor fabrication technology, memory design, and
device physics. Advances in semiconductor fabrication technology have made it possible to place the CPU
on a monolithic integrated circuit along with additional hardware. With the advent of programmable
read-only memory, the microprogram was not even bound to the whims of the original designer. It could
be reprogrammed at a later date if the manipulation of resources for a particular task needed to be mod-
ified or streamlined. In the simplest view, microprocessors became more and more complex with larger
instruction sets and many addressing modes. All of these advances were welcomed by compiler writ-
ers, and the instruction set complexity was a natural evolution of advances in component reliability and
density.
Complex Instruction Set Computer (CISC) and Reduced Instruction Set
Computer (RISC) Processors
The strength of the microprocessor is in its ability to perform simple logical tasks at a high rate of speed.
In
Complex instruction set computer
(CISC) microprocessors, small register sets, memory to memory
operations, large instruction sets (with variable instruction lengths), and the use of microcode are typical.
The basic simplified philosophy of the CISC microprocessor is that added hardware can result in an overall
increase in speed. The penultimate CISC processor would have each high-level language statement mapped
to a single native CPU instruction. Microcode simplifies the complexity somewhat but necessitates the use
of multiple machine cycles to execute a single CISC instruction. After the instruction is decoded on a CISC
machine, the actual implementation may require 10 or 12 machine cycles depending on the instruction and
addressing mode used. The original trend in microprocessor development was toward increased complexity
of the instruction set. Although there may be hundreds of native machine instructions, only a handful
are actually used. Ironically, the CISC instruction set complexity evolves at a sacrifice in speed because its
harder to increase the clock speed of a complex chip. Recently, recognition of this along with demands for
increased clock speeds have yielded favor toward the reduced instruction set (RISC) microprocessor.
This trend reversal followed studies in the early 1970s that showed that although the CISC machines
had plenty of instructions, only relatively few of these were actually being used by programmers. In fact,
85% of all programming consists of simple assignment instructions) (i.e., A
=
© 2006 by Taylor & Francis Group, LLC
B).
RISC machines have very few instructions and few machine cycles to implement them. What they do
have is a lot of registers and a lot of parallelism. The ideal RISC machine attempts to accomplish a complete
instruction in a single machine cycle. If this were the case, a 100-MHz microprocessor would execute 100
million instructions per second. There are typically many registers for moving data to accomplish the goal
of reduced machine cycles. There is, therefore, a high degree of parallelism in a RISC processor. On the other
hand, CISC machines have relatively few registers, depending on multiple machine cycle manipulation
of data by the microprogram. In a CISC machine, the microprogram handles a lot of complexity in
interpreting the native machine instruction. It is not uncommon for an advanced microprocessor of this
type to have over 100 native machine instructions and a slew of addressing modes.
The two basic philosophies, CISC and RISC, are ideal concepts. Both philosophies have their merits.
In practice, microprocessors typically incorporate both philosophical schemes to enhance performance
and speed. A general summary of RISC vs CISC is as follows. CISC machines depend on complexity of
programming in the microprogram, thereby simplifying the compiler. Complexity in the RISC machine
is realized by the compiler itself.
Microprocessors
9
-3
Logical Similarity
Microprocessors may often be highly specialized for a particular application. The external logical
appearance of all microprocessors, however, is the same. Although the package itself will differ, it contains
connection pins for the various control signals coming from or going to the microprocessor. These are
connected to the system power supply, external logic, and hardware to made up a complete computing sys-
tem. External memory, math-processors, clock generators, and interrupt controllers are examples of such
hardware and all must have an interface to the generic microprocessor. A diagram of a typical micropro-
cessor pinout and the common grouping of these control signals is shown in Fig. 9.1 and microprocessor
printout for Intel
®
8086 and 8088 processors are shown
Fig. 9.2
. Externally, there are signals, which may
be grouped as addressing, data, bus arbitration and control, coprocessor signals, interrupts, status, and
miscellaneous connections. In some cases, multiple pins are used for connections such as the case for the
address and data buses.
Just as the logical connections of the microprocessor are the same from family to family, so are the basic
instructions. For instance, all microprocessors have an add instruction, a subtract instruction, and a mem-
ory read instruction. Although logically, these instructions all are the same, the particular microprocessor
realizes the semantics of the instruction (e.g., ADD) in a very unique way. This implementation of the
ADD depends on the internal resources of the CPU such as how many registers are available, how many
internal buses there are, and whether the data and address information may be separated on travel along
the same internal paths.
To understand how a microprogram realizes the semantics of a native machine language instruction
in a CISC machine, refer to
Fig. 9.3
.
The figure illustrates a very simple CISC machine with a single
bus, which is used to transfer both memory and data information on the inside of the microprocessor.
Only one instruction may be operated on at a time with this scheme, and it is far simpler than most
microprocessors available today, but it illustrates the process of instruction implementation. The process
begins by a procedure (a routine in control store called the instruction fetch) that fetches the next contiguous
instruction in memory and places its contents in the instruction register for interpretation. The program
counterregister contains the address of this instruction, and its contents are placed in the memory address
ADDRESS LINES
8, 16, 32 OR 64 Bits
BUS CONTROL
SIGNALS
DATA LINES
8, 16, 32 OR 64 Bits
CO PROCESSOR
COMMUNICATION
A
TYPICAL
MICROPROCESSOR
PROCESSOR
STATUS
BUS ARBITRATION
SIGNALS
MISCELLANEOUS
SIGNALS
INTERRUPTS
CLOCK
INPUT
POWER
SUPPLY
FIGURE 9.1
The pins connecting all microprocessors to external hardware are logically the same. They contain pins
for addressing, data bus arbitration and control, coprocessor signals and interrupts, and those pins needed to connect
to the power supply and clock generating chips.
© 2006 by Taylor & Francis Group, LLC
9
-4
Microelectronics
MODE [MODE]
GND
AD14
AD13
AD12
AD11
AD10
AD9
AD8
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
NMI
INTR
CLK
GND
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
8086
CPU
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
V
CC
AD15
A15/S3
A17/S4
A18/S5
A19/S6
8HE/S7
MI
NIMAX
RD
RQ/GTD (HOLD)
RQ/GT
1 (HLDA)
LOCK (WR)
S2 (M/IO)
S1 (QT/R)
S0 (DEN)
QS0 (
ALE
)
QS1 (
INTA)
TEST
READY
RESET
GND
AD14
AD13
AD12
AD11
AD10
A9
A8
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
NMI
INTR
CLK
GND
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
8086
CPU
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
V
CC
A15
A15/S3
A17/S4
A18/S5
A19
/S6
SSO
HIGH
MN
/MX
RD
HOLD RQ/GTD
(HLDA
) RQ/
GT1
(WR) LOCK
(IO/M) S2
DT/R (S1)
DEN (
S0)
ALE
(QS0)
I
NTA
(QS1)
TEST
READY
RESET
FIGURE 9.2
Microprocessor chip pinouts for the Intel 8086 (left) and the 8088 (right).
register so that execution of a read command to the memory will cause, some time later, the contents of
the next instruction to appear in the memory data register. These contents are then moved along the bus to
the instruction register to be decoded. Meanwhile, the program counter is appropriately incremented and
contains the address of the next instruction to be fetched. The contents of the instruction register for the
current instruction contain the opcode and certain address information regarding the operands associated
with the coded operation. For example, if the fetched instruction were an add, the instruction register
would contain the coded bits indicating an add, and the information relevant to obtaining the operands
for the addition. The number of bits for the machine is constant (such as 8-,16-, or 32-b instructions) but
the number of bits dedicated to the opcode and operand fields may vary to accommodate instructions
with single or multiple operands, different addressing modes, and so forth. The opcode is almost always a
coded address referring to a position in the microprogram of the microprocessor. For the case of the add
instruction, the opcode indicates a place in microprogram memory that contains the logic code needed
to implement the add. Several machine cycles are necessary for the add instruction, including those steps
needed to fetch the instruction itself. The number of these steps depends on the particular microprocessor.
That is, all machines have an add instruction. The microprogram contains the realization of the add on
the specific microprocessor’s architecture with its individual set of hardware resources.
Specific steps (micro-operations), which direct the microprocessor to fetch the next instruction from
memory, are included with every native instruction. The instruction fetch procedure is an integral part
of every native instruction and represents the minimum number of machine cycles that a microprocessor
must go through to implement even the simplest instruction. Even a halt instruction, therefore, requires
several machine cycles to implement.
The advantages of the CISC scheme are clear. With a large number of instructions available, the pro-
grammer of a compiler or high-level language interpreter has a relatively easy task and a lot of tools at hand.
These include addressing mode schemes to facilitate relative addressing, indirect addressing, and modes
such as autoincrementing or decrementing. In addition, there are typically instructions for memory to
memory data transfers. Ease of programming, however, does not come without a price. The disadvantages
of the CISC scheme are, therefore, relatively clear. Implementation of a particular instruction is bound to
the microprogram, may take too many machine cycles, and may be relatively slow. The CISC architectural
scheme also requires a lot of real estate on the semiconductor chip. Therefore, size and speed (which are
really one and the same) are sacrificed for programming simplicity.
© 2006 by Taylor & Francis Group, LLC
Microprocessors
9
-5
ADDRESS BUS
MICROPROGRAM
COUNTER
INSTRUCTION
REGISTER
PROGRAM
COUNTER
MICROPROGRAM
CONTROL STORE
R0
MEMORY ADDRESS
REGISTER
R1
TO SYSTEM
MEMORY
CONTROL OF
REGISTERS/RESOURCES
Rn
MEMORY DATA
REGISTER
X
ARITHMETIC
LOGIC
UNIT
(ALU)
Z
FIGURE 9.3
The basic single bus computer. This CISC machine is characterized by multiple registers linked by a
bus, which carries both address and data information to and from the various registers (see text). Control lines gating
the input and output of each register are governed by the information contained in the control store.
The von Neumann architecture was once the basis of most all CISC machines. This scheme is char-
acterized by a common bus for data and address flow linking a small number of registers. The number
of registers in the von Neumann machine varies depending on design, but typically consists of about
10 registers including those for general program data and addresses as well as special purposes such as
instruction storage, memory addressing, and latching registers for the arithmetic logic unit (ALU). The
basic architecture of the von-Neumann machine is illustrated in Figure 8.68. Recent advances, however,
have led to a departure of CISC machines from the basic single bus system.
Short Chronology of Microprocessor Development
The first single chip CPU was the Intel 4004 developed for calculators. It processed data in 4 bits, and its
instructions were 8 bits long. Program and data were separate. The 4004 had 46 instructions, a 4 level stack,
12-b program counter, and 16, 4-b registers. Later in 1972, the 4004’s successor, the 8008, was introduced,
© 2006 by Taylor & Francis Group, LLC
Plik z chomika:
Januszek66
Inne pliki z tego folderu:
Back Seat_ A Mumbai Tale - Aditya Kripalani.mobi
(755 KB)
Brief Wondrous Life of Oscar Wao, The - Junot Diaz.opf
(3 KB)
Don't Make Me Think, Revisited_ - Steve Krug.mobi
(9256 KB)
M. T. Anderson - Norumbegan 03 - The Empire of Gut and Bone # (v5.0).epub
(2209 KB)
M. T. Anderson - Norumbegan 02 - The Suburb Beyond the Stars # (v5.0).epub
(2105 KB)
Inne foldery tego chomika:
Dokumenty
Galeria
LUDLUM ROBERT
Midi - Kar
Mszał Rzymski PL
Zgłoś jeśli
naruszono regulamin