Docsity

1.1 computer science revision, Study notes of Computer science

Toggle sidebar
bg1
PAPER 1 SPECIFICATION ORDER
Candidates need to have an understanding of the purpose and function of the core components of a
processor. Candidates need to understand the role and components of the ALU.
The main components of a processor include:
Control Unit (CU): Directs the operation of the processor, including managing the fetch-
decode-execute cycle.
Arithmetic Logic Unit (ALU): Performs arithmetic operations (e.g., addition, subtraction) and
logical operations (e.g., AND, OR, NOT).
Registers: Small, fast storage areas within the CPU for temporary data.
Cache: High-speed memory for frequently accessed instructions and data.
Buses: Communication pathways for transmitting data, addresses, and control signals.
 The ALU (Arithmetic Logic Unit) handles:
Arithmetic operations like addition and subtraction.
Logical operations like comparisons (e.g., greater than, less than).
Bitwise operations (e.g., AND, OR, XOR).
 The ALU interacts with registers to store the results of operations
Candidates need to understand the purpose and function or registers within the processor, including
the PC, accumulator, MAR, MDR and CIR.
Registers in a CPU serve specific roles in processing instructions:
Program Counter (PC): Keeps track of the memory address of the next instruction to be
fetched.
Accumulator (ACC): Stores intermediate results of calculations performed by the ALU.
Memory Address Register (MAR): Holds the memory address of data or instructions to be
fetched or stored.
Memory Data Register (MDR): Temporarily holds data being fetched from or written to
memory.
Current Instruction Register (CIR): Holds the current instruction that is being executed.
Candidates need to understand the purpose, function and role of the data, address and control buses
in the processor.
Data Bus: Transfers data between the processor, memory, and peripherals.Typically also used
during FDE when transferring data from RAM to MDR register
Address Bus: Transfers memory addresses, specifying where data should be read or written.
pf3
pf4
pf5
pf8

Partial preview of the text

Download 1.1 computer science revision and more Study notes Computer science in PDF only on Docsity!

PAPER 1 SPECIFICATION ORDER

Candidates need to have an understanding of the purpose and function of the core components of a processor. Candidates need to understand the role and components of the ALU. The main components of a processor include:  Control Unit (CU): Directs the operation of the processor, including managing the fetch- decode-execute cycle.  Arithmetic Logic Unit (ALU): Performs arithmetic operations (e.g., addition, subtraction) and logical operations (e.g., AND, OR, NOT).  Registers: Small, fast storage areas within the CPU for temporary data.  Cache: High-speed memory for frequently accessed instructions and data.  Buses: Communication pathways for transmitting data, addresses, and control signals.  The ALU (Arithmetic Logic Unit) handles:  Arithmetic operations like addition and subtraction.  Logical operations like comparisons (e.g., greater than, less than).  Bitwise operations (e.g., AND, OR, XOR).  The ALU interacts with registers to store the results of operations Candidates need to understand the purpose and function or registers within the processor, including the PC, accumulator, MAR, MDR and CIR. Registers in a CPU serve specific roles in processing instructions:  Program Counter (PC): Keeps track of the memory address of the next instruction to be fetched.  Accumulator (ACC): Stores intermediate results of calculations performed by the ALU.  Memory Address Register (MAR): Holds the memory address of data or instructions to be fetched or stored.  Memory Data Register (MDR): Temporarily holds data being fetched from or written to memory.  Current Instruction Register (CIR): Holds the current instruction that is being executed. Candidates need to understand the purpose, function and role of the data, address and control buses in the processor.  Data Bus: Transfers data between the processor, memory, and peripherals.Typically also used during FDE when transferring data from RAM to MDR register  Address Bus: Transfers memory addresses, specifying where data should be read or written.

Control Bus: Carries control signals from the control unit to coordinate activities, such as read/write operations.Also when sending control signals from i/o devices to CPU Candidates need to understand the purpose and stages within the FDE cycle.  Purpose: Executes instructions stored in memory in a cycle.  Stages:

  1. Fetch: The instruction is fetched from memory. o PC → MAR → MDR → CIR.
  2. Decode: The instruction in the CIR is interpreted.
  3. Execute: The decoded instruction is carried out (e.g., ALU operation, data movement). Candidates need to understand how and when the registers are used within this cycle, and how and where data and addresses are transmitted to/from in each part of this cycle.  Fetch: o PC increments as the next instruction is fetched. o MAR and MDR work to retrieve data from memory.  Decode: o CIR holds the instruction to be decoded.  Execute: o ACC is used to store calculation results or manipulate data. o ALU processes data as needed. Candidates need to understand how the performance of the CPU can be affected by many factors. Several factors influence how well the CPU performs:  Clock Speed: Faster clock speeds mean more instructions processed per second.  Number of Cores: More cores allow parallel execution of instructions, improving multitasking.  Cache Size and Speed: Larger, faster caches reduce the need to fetch data from slower RAM. Candidates need to have an understanding of the Von Neumann and Harvard architectures. They should be aware of the different approaches the architectures take to storing instructions and data in memory and the benefits of each approach. Von Neumann Architecture: o Uses the same memory and bus for instructions and data. o Simpler design but prone to bottlenecks (e.g., instruction/data collisions).  Harvard Architecture: o Separates memory and buses for instructions and data. o Allows simultaneous access to instructions and data, improving performance. Benefits:Von Neumann: Easier to implement, widely used in general-purpose CPUs.  Harvard: Better performance for specialized tasks like embedded systems. Candidates will not be asked about specific aspects of “contemporary processor architecture” unless explicitly named in the specification. They may, however, be asked to show an awareness of how contemporary processors differ from a pure Von Neumann architecture in more open questions Combination of both von neumann and Harvard architecture. Where the cache uses Harvard arcitecture

use in modeling, data mining, etc.). Purpose and Applications of GPUsPurpose: GPUs (Graphics Processing Units) are specialized processors designed to handle parallel tasks, particularly graphics rendering.  Applications: o Graphics Rendering: 3D modeling, video rendering, gaming. o Scientific Computing: Simulations, data mining, modeling. o AI/ML Tasks: Accelerating machine learning model training. o Cryptocurrency Mining: Performing repetitive calculations. o Data Analysis: Accelerating tasks like pattern recognition. Candidates should understand the benefits and using GPUs and why they are suited to certain tasks (specialist instructions, multiple cores and SIMD processing). Benefits of GPUsSpecialist Instructions: Designed for mathematical operations common in graphics and simulations.  Multiple Cores: Enables parallel processing of multiple tasks simultaneously.  SIMD (Single Instruction, Multiple Data): Processes large datasets by applying the same operation across many data points efficiently.  Why Suited to Certain Tasks: GPUs excel in workloads requiring high parallelism, such as matrix calculations in AI or rendering pixels in graphics. Candidates need to understand what is meant by a parallel system and the benefits and limitations of parallel processing. Parallel Processing: Definition, Benefits, and LimitationsDefinition: Parallel processing involves splitting tasks into smaller sub-tasks and executing them simultaneously across multiple processing units.  Benefits: o Faster execution for large-scale computations. o Improved efficiency for workloads like simulations, graphics, and AI. o Reduces bottlenecks in single-threaded operations.  Limitations: o Software Dependency: Requires programs written to support parallelism. o Overhead: Coordination between tasks can reduce efficiency.

o Task Suitability: Some tasks (e.g., sequential algorithms) cannot be parallelized effectively. Candidates need to understand that parallel processing can be achieved through different (i.e. multiple processors in the same computer or distributed across multiple cores in a CPU or GPU). Methods of Achieving Parallelism:Multiple Processors: Different processors in the same system working on shared or distributed tasks.  Multiple Cores: A single CPU or GPU with multiple cores handling tasks in parallel.  Distributed Systems: Independent systems connected over a network (e.g., clusters, cloud computing). Candidates need to understand the benefits of a multicore system in terms of parallel processing and running multiple programs at the same time.  Parallel Processing: Multiple cores can execute independent tasks simultaneously or divide a single task into subtasks.  Multitasking: Enables smooth execution of multiple programs without bottlenecks.  Energy Efficiency: Modern multicore systems are optimized to perform better with less power than multiple separate processors.  Performance Boost: Ideal for workloads that support parallelism, such as video editing, gaming, and simulations.

o Characteristics:  Portable and inexpensive.  Limited storage capacity and slower read/write speeds. o Use Case: Distributing media like movies or software.  Flash Storage: o Examples: Solid State Drives (SSDs), USB drives, memory cards. o Characteristics:  Fast, durable, and portable.  Higher cost per GB compared to magnetic storage. o Use Case: Operating systems, mobile devices, and portable storage. Choosing a Storage Type: When recommending a storage type, consider:  Capacity: Does the user need to store terabytes of data?  Speed: Are fast read/write speeds critical for performance?  Portability: Will the device be moved frequently?  Budget: Is cost a significant constraint? Candidates need to understand the purpose of ROM and RAM within a computer system, their characteristics, and the role they play in the running of a range of different computers e.g. mobile devices, embedded systems etc. ROM (Read-Only Memory):Purpose: Stores permanent instructions (e.g., firmware or bootloader).  Characteristics: o Non-volatile (data remains even when power is off). o Cannot be easily modified.  Use Cases: o Bootstrapping operating systems in computers. o Embedded systems like microwaves or washing machines. RAM (Random Access Memory):Purpose: Temporarily holds data and instructions for active tasks.  Characteristics: o Volatile (data is lost when power is off). o Fast read/write speeds.  Use Cases: o Running applications on PCs, mobile devices, and servers. o Ensures smooth multitasking and quick responsiveness. Candidates need to understand why there is a need for virtual storage, how virtual storage works and the benefits and drawbacks of using virtual storage. Virtual storage would be that which may appear to be local but is physically located elsewhere on the network/remotely/in the cloud Definition:

Virtual storage refers to storage that appears local to a user but is physically located remotely, such as in a cloud server or a network- attached storage (NAS) device. How It Works:  Data is stored on remote servers and accessed over the internet or a network.  Appears as a local drive to the user. Benefits:Scalability: Storage capacity can be expanded easily.  Accessibility: Data can be accessed from anywhere with an internet connection.  Backup and Redundancy: Often includes automatic backups to prevent data loss. Drawbacks:Dependency on Internet: Data access requires a stable network connection.  Latency: Remote access may introduce delays compared to local storage.  Security Concerns: Data stored remotely may be vulnerable to breaches