Learn in your language
Skip to content
A Level · Cambridge (CIE) · 9618

3 Hardware and logic circuits

Match hardware to input, processing, output and storage needs, then model Boolean logic as gates and truth tables.

Section 3 · Hardware and logic circuits

Cambridge International AS & A Level Computer Science 9618 · 2027–2029 · Version 2 · 3

Mapped to Cambridge International AS & A Level Computer Science 9618, 2027–2029 Version 2. These original lessons and self-checks are independent study support; they are not Cambridge papers, official marks or grades. The course does not yet provide a timed four-paper simulation or a locked-down Paper 4 programming environment.

Before you begin

  • Use the 2027–2029 syllabus for your exam year. AS candidates study Sections 1–12; A Level candidates study Sections 1–20. Paper 4 uses a programming language chosen from Python, Java or Visual Basic in console mode.

Work on paper. Try each question before revealing help, and explain why your method works.

Quick readiness check

When is A OR B false?

What you will learn

  • Explain the key representations, structures or processes in this syllabus section
  • Apply the method to a new computer-science example
  • Justify a design choice and check its limits

Memory and storage serve different jobs

RAM is volatile working memory; ROM is non-volatile and can hold startup instructions. SRAM is fast and does not need periodic refresh while powered, so it is used for cache. DRAM stores charge that must be refreshed and is commonly used as main memory.

Flash storage is non-volatile and has no moving parts. Magnetic disks store data magnetically on rotating platters. Optical drives read or write marks on discs. Buffers temporarily hold data while devices operating at different rates exchange it.

Embedded systems are built into a larger product for specific functions. They can be compact and efficient but may be difficult to upgrade and must operate within the product's constraints.

Devices and gates transform information

A microphone converts sound into an electrical signal; speakers convert an electrical signal into sound. A laser printer forms an image on paper using toner; a 3D printer builds an object in layers. Touchscreens can both display information and detect input.

NOT reverses one Boolean input. AND is true only when both inputs are true; OR is true when at least one is true. NAND and NOR invert AND and OR; XOR is true when inputs differ. A truth table lists outputs for every input combination.

Pause and explain

What is the purpose of a buffer?

Put the idea to work

Worked example

For A=1 and B=0, find the outputs of A AND B and A XOR B.

Show the worked solution
  1. AND is true only if both inputs are 1, so 1 AND 0 = 0.
  2. XOR is true when the inputs differ.
  3. Because 1 and 0 differ, XOR = 1.

Answer A AND B = 0; A XOR B = 1.

Try a topic test

Choose Easy, Normal or Difficult. Save your answers and open worked review after finishing.

Test this topic →

From guided practice to a new situation

Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.

1 · Guided

A circuit outputs 1 only when exactly one of A and B is 1. Name the gate and give the outputs for 00, 01, 10, 11.

Give me a hint

Compare the inputs in each row.

Compare my reasoning
  1. Equal inputs 00 produce 0.
  2. Different inputs 01 and 10 produce 1.
  3. Equal inputs 11 produce 0.

XOR; outputs 0, 1, 1, 0.

Look for these in your work

  • Correct gate
  • All four rows
  • Equal and unequal cases distinguished
2 · Independent

A device must retain its startup instructions without power and hold files that can be rewritten. Select suitable technologies for these roles.

Give me a hint

Separate firmware storage from rewritable secondary storage.

Compare my reasoning
  1. ROM is non-volatile and can hold startup instructions.
  2. Flash storage is non-volatile and can be rewritten, subject to device limits.
  3. State the role matched to each technology.

ROM for startup instructions; flash storage for rewritable files.

Look for these in your work

  • Non-volatility identified
  • Roles matched
  • Storage choice explained
3 · Transfer

A sensor produces data faster than a printer can consume it. Explain how a buffer helps and what happens if it fills.

Give me a hint

Describe temporary queueing, then reason about capacity.

Compare my reasoning
  1. The buffer stores data temporarily while the printer catches up.
  2. This allows the sensor and printer to operate at different rates for a time.
  3. If the buffer fills, new data may have to wait or be lost unless flow control or a larger buffer is used.

A buffer absorbs a temporary rate mismatch; once full, data must wait or some data may be lost.

Look for these in your work

  • Temporary storage described
  • Rate mismatch connected
  • Full-buffer limit identified

Common mistakes

  • Treating ROM as a faster version of RAM rather than a different memory role.
  • Forgetting that XOR is true for different inputs, not for both inputs being true.
  • Listing an output device's name without explaining what it converts or produces.
Recall without your notes

What can you explain now?

Which memory is commonly used for CPU cache because it is fast and does not require periodic refresh?

Compare with the explanation

SRAM

SRAM is fast and more expensive per bit; DRAM needs refresh and is commonly used as main memory.

After trying it yourself, choose your next review. This is your self-assessment.

Your review choice appears on Today. Sign in to sync it across devices.

Make it stick

How do RAM, ROM, SRAM, DRAM, secondary storage and buffers differ, and how do gates map inputs to outputs?

If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.

Keep learning Computer Science

Course scope and assessment

This pathway maps the 2026 Version 2 and 2027–2029 Version 2 syllabuses, which Cambridge says have no significant changes affecting teaching. It has original teaching and guided, independent and transfer practice for all 20 syllabus sections, with topic links to the official section headings. It is mapped teaching, not proof of exam readiness or an official Cambridge grade. Paper 4 requires complete programs and testing evidence in a programming environment; the current course offers explained code and algorithm practice but does not yet provide a locked-down timed programming-paper environment, full four-paper mocks or human subject-teacher review.

StudyForA · Learn with understanding

Original teaching content and links to official sources. Check your exam year and qualification before using a resource.