Professional Documents
Culture Documents
CAAMPChapter3TypesofCompArch PDF
CAAMPChapter3TypesofCompArch PDF
net/publication/241056162
CITATIONS READS
0 5,891
2 authors:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by William Gilreath on 19 November 2018.
Chapter 3
Pablo Picasso (188 J-J973). Spanish painter, sculptor, graphic artist, and ceramist.
3.1 Overview
data and
address
buses
CPU Main
Memory
Input and output occurs either through specific instructions for this
purpose (programmed 1/0) or through direct memory access (DMA).
Interrupt signals are a form of input that causes the sequence of program
execution to change and for code associated with the interrupt to be
executed instead. I/O can also occur through virtualized memory locations
via memory-mapped I/O, which is of particular interest in OISC
architectures. Secondary memory storage devices are also treated as I/O
devices.
IntCItUpt Micro
controller
memory
I MARl
I MDR I
Figure 3-2. An idealized CPU showing some of the internal components without
interconnections.
There are four general kinds of computer architectures in the widely used
classification scheme given by Hennessy and Patterson [Hennessy98]. These
are:
I. stack,
2. accumulator,
3. register-memory,
4. register-oriented (load-store).
3.2.1 Stack
i++;
PUSH &i;
PUSH OxOl;
ADD;
POP &i;
Note how data movement uses I-tuple instructions, whereas the actual data
processing instructions uses O-tuple instructions.
Stack computer architectures are not used often in the pure stack
concept, although all architectures support a run-time stack. The Java
Types ofComputer Architectures 19
3.3 Accumulator
All operations and instructions use the accumulator, which then holds the
resultant. The only other instructions are to load and store the accumulator
with data.
i++;
LDA &i;
ADDA OxOl;
STA &i;
3.4 Register-Memory
i++;
The IBM System/360OJ and DEC PDP-II OJ were among the first register-
memory architecture based systems. The Intel 80386 and Motorola 68K
processors are more recent register-memory processor architectures.
3.5 Register-Oriented
i++;
3.6 Exercises
2. The Java Virtual Machine (JVM) and Pascal p-machine use a stack
architecture. Discuss the advantages of this approach.