Save
A-level OCR CS 1.1
A-level OCR CS 1.1.1
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Christen Alilio
Visit profile
Cards (42)
The
processor
is the
brain
of a computer
View source
It executes
instructions
which allows programs to
run
View source
Arithmetic
and
Logic Unit
(ALU)
View source
Completes all
arithmetical
and
logical
operations
View source
Arithmetical operations include
addition
and
subtraction
on
fixed
or
floating
point numbers
View source
Logical operations
include boolean logic operations such as
AND
,
OR
,
NOT
, and
XOR
View source
Control
Unit
View source
Directs
the
operations
of the
CPU
View source
Jobs include:
Controlling
and
coordinating
the activities of the
CPU
Managing
the
flow
of
data
between the
CPU
and
other devices
Accepting
the next
instruction
Decoding instructions
Storing
the
resulting data
back in
memory
View source
Registers
View source
Small
memory
cells that operate at a very
high
speed
View source
Used to
temporarily
store data
View source
All
arithmetic
,
logical
and
shift
operations occur in these registers
View source
Types of registers:
Program Counter
(
PC
): Holds the
address
of the next
instruction
to be
executed
Accumulator
(
ACC
): Stores the results from
calculations
Memory Address Register
(
MAR
): Holds the address of a location to be
read
from or
written
to
Memory Data Register
(
MDR
):
Temporarily
stores
data
Current Instruction Register
(
CIR
): Holds the current
instruction
being executed, divided into
operand
and
opcode
View source
Buses
View source
A set of parallel wires which connect
two
or
more components inside
the
CPU
View source
Three buses in the CPU:
data
bus,
control
bus, and
address
bus
View source
Collectively
called the
system bus
View source
Data Bus:
Bi-directional
bus used for
transporting data
and
instructions
between
components
Address
Bus:
Used to transmit
memory addresses
specifying where
data
is to be
sent
to or
retrieved
from
Control
Bus:
Bi-directional
bus used to transmit
control
signals between
internal
and
external components
Control signals include
bus request
,
bus grant
,
memory write
, memory read, interrupt request, and clock
View source
Assembly
language
View source
Uses
mnemonics
to represent instructions
View source
Example:
ADD
represents
addition
View source
Instruction divided into
operand
and
opcode
in the
Current Instruction Register
View source
Operand
contains the
data
or
address
of the data upon which the
operation
is to be performed
View source
Opcode
specifies the
type
of
instruction
to be
executed
View source
Pipelining
View source
Process of completing
fetch
,
decode
, and
execute
cycles of
three
separate instructions
simultaneously
View source
Aimed to
reduce
the amount of the CPU which is kept
idle
View source
Separated into
instruction
pipelining and
arithmetic
pipelining
View source
Instruction pipelining
separates out fetching, decoding, and executing
View source
Arithmetic pipelining
breaks down
arithmetic operations
and
overlaps
them as they are performed
View source
Fetch-Decode-Execute
Cycle
View source
Sequence of operations to execute an instruction:
Fetch phase
:
Address
from
PC
copied to
MAR
,
instruction
copied to
MDR
,
PC contents increased
by
1
,
MDR value
copied to
CIR
Decode phase
:
CIR contents
split into
operand
and
opcode
Execute phase
:
Decoded instruction
is
executed
View source
Factors affecting
CPU performance
View source
Clock speed
,
number of cores
, and
amount/type of cache memory
View source
Clock speed
:
Determined by the
system clock
Time
taken for
one
clock
cycle
to
complete
All
processor activities
begin on a
clock pulse
Each
CPU operation starts
as the
clock
changes from
0
to
1
View source
Number of cores:
An
independent processor
able to run its
own fetch-execute
cycle
Multiple cores
can complete
more than one fetch-execute
cycle
simultaneously
View source
Cache memory:
CPU's
onboard
memory
Instructions
fetched from
main memory
are copied to cache for
quicker access
Cache types: Level
1
, Level
2
, Level
3
View source
Computer
Architecture
View source
Von Neumann Architecture:
Basic components include
single control unit
,
ALU
,
registers
, and
memory units
Shared memory
and
shared data bus
used for both
data
and
instructions
Built on the
stored program concept
View source
See all 42 cards