Central Processing Unit (CPU) Architecture (Cambridge (CIE) A Level Computer Science): Flashcards

Exam code: 9618

1/92

0Still learning

Know0

  • Define the Von Neumann model.

Cards in this collection (92)

  • Define the Von Neumann model.

    The Von Neumann model is a design of the CPU that outlines how the computer memory, input/output devices and processor all work together, and on which most general-purpose computers are built.

  • Name the four things the Von Neumann model consists of.

    A central processing unit, the ability to access memory directly, memory that can store programs as well as data, and stored programs containing instructions that can be executed in order.

  • Define register.

    A register is extremely small, extremely fast memory located in the CPU that holds small amounts of data needed as part of the fetch-execute cycle.

  • What is a general purpose register?

    A register that can store any data the CPU is currently working on, and is flexible enough to be used for various operations.

  • Define special purpose register.

    A special purpose register has a dedicated role within the operation of the CPU, controlling or tracking data.

  • What is the purpose of the Program Counter?

    It holds the memory address of the next instruction to be executed, and increments by 1 as the fetch-decode-execute cycle runs.

  • What is the purpose of the Memory Address Register?

    It holds the memory address of where data or instructions are to be fetched from memory.

  • What is the purpose of the Memory Data Register?

    It stores the data or instruction which has been fetched from memory.

  • What is the purpose of the Current Instruction Register?

    It stores the instruction the CPU is currently decoding or executing.

  • What is the purpose of the Accumulator?

    It stores the results of any calculations that have taken place in the Arithmetic Logic Unit.

  • What is the purpose of the Index Register?

    It stores a value that can be added to an address to get the effective memory address, and is used for indexed addressing.

  • What is the purpose of the Status Register?

    It stores flags that reflect the outcome of CPU operations, holding individual bits that are set or cleared depending on the result of an instruction, such as overflow.

  • The acronym        stands for the Current Instruction Register.

    The acronym CIR stands for the Current Instruction Register.

  • What three things must you know about each special purpose register?

    The name of the register, its acronym, and the purpose of the register.

  • True or False?

    The Memory Address Register stores the data that has been fetched from memory.

    False.

    The MAR holds the address of where data is to be fetched from; it is the MDR that stores the data or instruction fetched.

  • What is the CPU responsible for?

    Processing all data within the computer.

  • Name the five components that make up the CPU.

    The Arithmetic Logic Unit (ALU), the Control Unit (CU), the system clock, the Immediate Access Store (IAS) and the buses.

  • What does the Arithmetic Logic Unit do?

    It performs calculations, such as add and subtract, and logic operations, such as AND and OR.

  • What does the Control Unit do?

    It manages and controls the execution of instructions and directs data flow.

  • What does the system clock do?

    It sends out regular pulses to synchronise all CPU operations.

  • What is the Immediate Access Store?

    The main memory where instructions and data needed by the CPU are temporarily stored.

  • Define bus.

    A bus is a set of parallel wires through which data or signals are transmitted from one component to another.

  • Name the three types of bus.

    The address bus, the data bus and the control bus.

  • What does the address bus carry, and in which direction?

    It carries location data (addresses) that data is written to or read from, and it is unidirectional.

  • What does the data bus carry, and in which direction?

    It carries data or instructions, and it is bidirectional.

  • The                      bus carries commands and control signals, and is bidirectional.

    The control bus carries commands and control signals, and is bidirectional.

  • True or False?

    The address bus is bidirectional.

    False.

    The address bus is unidirectional; the data and control buses are the bidirectional ones.

  • Define core.

    A core acts like a mini CPU that can fetch, decode and execute instructions on its own.

  • What three components does each core have of its own?

    Its own Control Unit, Arithmetic Logic Unit and registers.

  • What does a multicore CPU allow?

    Parallel processing, where multiple instructions are processed at the same time.

  • How many instructions per second can a quad-core CPU running at 3 GHz perform?

    4 cores × 3 billion gives 12 billion instructions per second.

  • Why is a dual-core processor not always twice as fast as a single-core one?

    Some time is used for organising tasks between cores, and not all tasks can be split across cores because some are sequential and must be done step-by-step.

  • What does the clock control, and what is a state change?

    The clock controls the timing of operations inside the CPU, constantly switching between 0 and 1; each switch is a state change, which can represent one step in the fetch-decode-execute cycle.

  • What does clock speed measure, and in what unit?

    It measures how many state changes happen per second, where 1 cycle per second = 1 Hz.

  • A typical clock speed of 2.3 GHz means                      cycles per second.

    A typical clock speed of 2.3 GHz means 2.3 billion cycles per second.

  • Why does a higher clock speed improve performance?

    The CPU can execute more instructions per second, helping the computer run tasks more quickly and efficiently.

  • Define cache memory.

    Cache is part of primary storage that stores frequently used data and instructions, located closer to the CPU than RAM so it is faster to access.

  • Why does more cache improve CPU performance?

    More data is stored nearby, which means less time waiting for data from RAM.

  • Where is Level 1 cache located, and what are its speed and size?

    Inside each CPU core; it is the fastest and the smallest.

  • Where is Level 3 cache located, and what are its speed and size?

    It is shared by all cores, and is slower than L1 and L2 but the largest.

  • Define bus width.

    Bus width is the number of bits a bus can carry at once, so a wider bus can transfer more bits in a single operation.

  • What does a wider data bus mean for a computer?

    Faster processing and more efficient memory access, which matters for high-performance tasks such as gaming, video editing and large data processing.

  • True or False?

    Every instruction takes exactly one clock cycle to complete.

    False.

    A state change can represent one step in the cycle, but some instructions may take more than one cycle.

  • What does USB stand for, and what kind of communication method is it?

    Universal Serial Bus — a serial communication method that operates asynchronously.

  • What do the letters in USB-A, USB-B and USB-C refer to?

    The physical shape and design of the connector.

  • What three qualities is USB-C known for?

    Its small size, its transfer speeds, and its ability to carry power.

  • What do the numbers in USB 2.0, 3.0 and 4 refer to?

    The generation of USB technology, which determines the speed and performance.

  • Give the transfer speeds of USB 2.0 and USB4.

    USB 2.0 reaches 480 Mbps, while USB4 and USB4 2.0 reach up to 80 Gbps.

  • Describe what happens when a device is connected to a USB port.

    The computer automatically detects the device, then looks for the correct driver — loading it if already installed, searching for a compatible one if the device is new, and requiring the user to install one manually if none is found.

  • Give three advantages of USB.

    Devices are automatically detected with drivers loaded, connectors fit in only one way which prevents incorrect connections, usage is standardised so support is widely available, several data transmission rates are supported, and newer standards are backwards compatible.

  • The maximum USB cable length is roughly        metres, which limits its use over long distances.

    The maximum USB cable length is roughly 5 metres, which limits its use over long distances.

  • What does HDMI carry, and what did it replace?

    It is a digital port carrying both video and audio output, and it replaced older VGA analogue systems.

  • Name four features of modern HD displays that demand more data.

    Widescreen format, higher resolution, faster refresh rates, and a wider colour range of millions of variations.

  • What bandwidth does HDMI provide?

    Up to 10 Gbps.

  • What does HDCP stand for, and what does it do?

    High-bandwidth Digital Content Protection — devices check for an authentication key before sending data, and if authenticated a handshake occurs, which helps prevent unauthorised copying of protected content.

  • What is the maximum resolution and refresh rate of VGA?

    640 × 480 pixels at up to 60 Hz, but only 16 colours at that rate.

  • How can VGA display more colours?

    By reducing the resolution — at 320 × 200 it can support up to 256 colours.

  • Give two consequences of VGA being an analogue signal.

    Lower image quality over long cables, and it is more likely to experience signal loss or interference.

  • True or False?

    VGA carries both video and audio, like HDMI.

    False.

    VGA was the standard for video output only and is an analogue signal; it is HDMI that carries both video and audio digitally.

  • Define the fetch-execute cycle.

    The fetch-execute cycle is the process the CPU goes through repeatedly to process instructions.

  • Name the three stages of the fetch-execute cycle.

    Fetching an instruction from memory, decoding the instruction, and executing it.

  • What happens during the decode stage?

    The instruction is interpreted, and the required data is read and retrieved from their addresses.

  • Which register is the PC value copied to at the start of a fetch?

    The MAR, the Memory Address Register.

  • How is the address in the MAR sent, and what accompanies it?

    The address is sent via the address bus, and a read instruction is sent on the control bus.

  • Where does data from the addressed memory location travel to, and along which bus?

    It is sent down the data bus to the MDR.

  • During fetch the PC is incremented by       , ready for the next instruction.

    During fetch the PC is incremented by 1, ready for the next instruction.

  • What two parts does the CIR split the instruction into?

    The opcode and the operand.

  • Which component decodes what to do next, and where is the instruction sent from?

    The instruction is sent from the CIR to the CU, which decodes what to do next.

  • Define Register Transfer Notation (RTN).

    RTN is a way of describing how data moves between registers in a CPU during the fetch-execute cycle, using symbols for registers and the arrow to show data being transferred.

  • In RTN, what is the difference between [MAR] and [[MAR]]?

    [ ] means the contents of a register, while [[ ]] means the contents of the memory location addressed by that register.

  • Write the fetch stage in Register Transfer Notation.

    MAR ← [PC], then MDR ← [[MAR]], then PC ← [PC] + 1, then CIR ← [MDR].

  • Write LDA X in Register Transfer Notation.

    MAR ← [operand], then MDR ← [[MAR]], then ACC ← [MDR].

  • Write STA X in Register Transfer Notation.

    MAR ← [operand], then MDR ← [ACC], then [[MAR]] ← [MDR].

  • Write BRZ X in Register Transfer Notation.

    If [ACC] = 0 then PC ← [operand].

  • Where does an ADD instruction perform its calculation, and where is the result stored?

    The value from RAM is loaded into the MDR, the calculation happens in the ALU, and the result is stored in the ACC.

  • True or False?

    The decode stage involves a specific register transfer of its own.

    False.

    There is no specific register transfer in decode — the CU decodes the instruction held in the CIR.

  • Define interrupt.

    An interrupt is a signal to the processor that stops its current task and performs a different task temporarily.

  • What does the processor do when an interrupt occurs?

    It suspends the current program execution and transfers control to an interrupt service routine.

  • Name the three purposes of interrupts.

    Real-time event handling, such as hardware errors; device communication, such as printer jams and network errors; and multitasking, suspending one application so the user can switch to another.

  • Name the three types of interrupt.

    Hardware interrupts, software interrupts and trap interrupts.

  • What generates a hardware interrupt? Give two examples.

    They are generated by external devices, such as keyboard input, mouse movements or disk I/O requests.

  • What triggers a software interrupt? Give two examples.

    They are triggered by software or the operating system, such as an application request to open a file or a division by zero error.

  • What is a trap interrupt?

    One that is intentionally triggered by a program, for example during software debugging or when handling unexpected error cases.

  • Name the five stages of the interrupt process.

    Interrupt request (IRQ), interrupt acknowledge, ISR lookup, ISR execution and interrupt exit.

  • What happens during interrupt acknowledge?

    The interrupt handler decides if the interrupt needs to be dealt with now or later, and if so the current contents of the processor registers are saved in memory.

  • What happens at interrupt exit?

    The processor restores the contents of the registers that were saved, and the fetch-decode-execute cycle is resumed.

  • Define Interrupt Service Routine (ISR).

    An ISR is a special function that handles a particular interrupt type, and each type of interrupt has a corresponding routine.

  • Why must an ISR be concise and efficient?

    Because ISRs often need to handle time-sensitive events, so they are designed to minimise the time taken to execute.

  • Why is prioritising interrupts vital?

    Because many things can go wrong at the same time, so the processor must be able to switch to resolving a higher-priority interrupt, with lower-priority ISRs temporarily suspended.

  •                      of interrupts refers to the processor's ability to handle interrupts within interrupts.

    Nesting of interrupts refers to the processor's ability to handle interrupts within interrupts.

  • Describe how a computer handles an interrupt when a key is pressed.

    An interrupt flag is raised in the interrupt register, the system finishes its current fetch-execute cycle, the register is checked for a higher priority interrupt, the current register contents are pushed to the stack, the appropriate ISR is executed, then the register contents are restored and control returns to the original process.

  • True or False?

    The processor abandons its current fetch-execute cycle the instant an interrupt flag is raised.

    False.

    The system finishes its current fetch-execute cycle first, and only then checks the interrupt register.

Sign up to unlock flashcards

or