100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary of each unit

Rating
-
Sold
-
Pages
8
Uploaded on
28-08-2023
Written in
2022/2023

These documents contain summaries of the information required for the OCR exams for A level Computer Science. They are split into each unit and contains all the necessary information and some which may or may not necessarily be needed at the time, however it is all useful to the course.

Show more Read less









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
August 28, 2023
Number of pages
8
Written in
2022/2023
Type
Summary

Subjects

Content preview

Structure and function of the processor:
Components of a processor:
The processor is basically the brain of a computer. It executes instructions and allows programs to
run.

Arithmetic Logic Unit:
The Arithmetic Logic Unit (ALU) completes all operations that are arithmetical or logical. Arithmetical
operations are mathematical operations, such as addition or subtraction of fixed- or floating-point
numbers. Logical operations include Boolean logic operations, such as AND, OR, NOT, XOR.

Control Unit:
The Control Unit is the component that directs the operations of the CPU. These operations are:

 Controlling and coordinating the activities of the CPU
 Managing data flow between the CPU and other devices
 Accepting the next instruction
 Decoding instructions
 Storing the resulting data back in memory

Registers:
Registers are small memory cells that operate at a high speed. They are used to temporarily store
data and all arithmetic; logical and shift operations occur here.

Registers Purpose
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 that is to be read from or
written to.
Memory Data Register (MDR) Temporarily stores data that has been read or needs to be
written.
Current Instruction Register Holds the current instruction being executed, the instruction is
(CIR) divided into operand and opcode.
Buses:
Buses are a set of parallel wires that connect 2 or more components within the CPU. There are three
types of buses:

 Data bus
 Address bus
 Control bus

These are collectively called system busses. The width of the bus is directly proportional to the
number of bits that can be simultaneously transferred at a given time.

Data bus:
The data bus is a bi-directional bus. It is used for transporting data and instructions between
components.

, Address bus:
The address bus is used to transmit the memory addresses that specify where data is to be sent or
retrieved. The width of the address bus is proportional to the number of addressable memory
locations.

Control bus:
The control bus is a bi-directional bus and is used to transmit control signals between internal and
external components. These signals include:

 Bus request-Shows that a device is requesting the use of the data bus
 Bus grant-Shows that the CPU has granted access to the data bus
 Memory write-Data is written to the addressed location
 Memory read-Data is read from a specific location
 Interrupt request-Shows that a device is requesting access to the CPU
 Clock-Used to synchronise operations

Assembly language:
Assembly code uses mnemonics to represent instructions, such as ADD which represents addition.
The instructions are divided into operand and opcode in the CIR. The operand contains the data or
the address of the data which the operation is to be performed. The opcode specifies the type of
instruction to be executed.

Operation code operand
Machine code operation Addressing
mode
0 1 0 0 0 1 0 1 0 0 1 1 0 1 0 1


Pipelining:
Pipelining is the process of completing the Fetch-Decode-Execute cycles of 3 separate instructions at
the same time. While one instruction is executed, one is decoded and one is fetched.

Fetch Decode execute
1
2 1
3 2 1
4 3 2
5 4 3
6 5 4


Fetch-Decode-Execute Cycle:
The Fetch-Decode-Execute cycle is the sequence of operations that are completed in order to
execute an instruction.

Fetch:
 Address from the PC is copied to the MAR
 Instruction held at that address is copied to the MDR by the Data bus
 Simultaneously the contents of the PC are increased by 1
 The value held in the MDR is copied to the CIR
£7.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
michaellawther

Get to know the seller

Seller avatar
michaellawther Huddersfield New College
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
12
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions