1. Home
  2. Explore
  3. Computer Science
  4. Building a Simple Computer

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Building a Simple Computer

  • 80Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Computer Foundations
The two initial registers each store a single number using
bits.

80 questions

  1. 1
    The two initial registers each store a single number using
    _____
    bits.
    Hint

    Each register could hold values from 0 through 15.

    Answer

    4

    Explanation

    Each initial register is a 4-bit register and can remember one number in that range.

  2. 2
    The arithmetic unit in the initial setup can perform addition and
    _____
    on the register values.
    Hint

    It can perform the operation demonstrated with 15 and 10.

    Answer

    subtraction

    Explanation

    The ALU in the setup can perform addition or subtraction on the values in the registers.

  3. 3
    The result of an ALU calculation is stored in a register when the
    _____
    is pulsed.
    Hint

    This signal coordinates when stored values update.

    Answer

    clock

    Explanation

    Pulsing the clock causes the calculated result to be stored in a register.

  4. 4
    A 4-bit input pin or an 8-bit input pin bundles several input lines so users do not need to manage each
    _____
    separately.
    Hint

    Think of the individual connections that carry bits.

    Answer

    wire

    Explanation

    Multi-bit input pins reduce the need to manage many individual wires manually.

  5. 5
    The input pins became standalone elements so the simulation could be zoomed and
    _____
    more freely.
    Hint

    The change made it easier to move around the workspace.

    Answer

    navigated

    Explanation

    Standalone input pins allow users to zoom in and out and roam around the larger workspace.

  6. 6
    A register is useful for holding a value currently being worked with, while
    _____
    memory provides a larger place to keep results for later use.
    Hint

    This is the computer's larger general store for data.

    Answer

    main

    Explanation

    Main memory stores results and other values that may be accessed later, beyond the few values held in working registers.

  7. 7
    The main memory design is built from storage elements that can be selected individually using a memory
    _____
    .
    Hint

    This value identifies the location to access.

    Answer

    address

    Explanation

    The address determines which memory location is selected for reading or writing.

  8. 8
    A 4-bit address can identify
    _____
    distinct locations.
    Hint

    Four binary bits have sixteen possible patterns.

    Answer

    16

    Explanation

    A 4-bit address has sixteen possible values, enough to identify sixteen locations.

  9. 9
    The initial register-based arithmetic setup is not yet a
    _____
    computer because it lacks broader capabilities such as substantial memory.
    Hint

    This term describes a computer designed to handle many kinds of tasks.

    Answer

    general purpose

    Explanation

    The setup can perform basic arithmetic, but it still lacks the components and capabilities of a general purpose computer.

  10. 10
    In a 4-by-4 memory grid, the address bits can be divided so that two specify the row and two specify the
    _____
    .
    Hint

    The other coordinate identifies the vertical position in the grid.

    Answer

    column

    Explanation

    Two address bits select a row and the other two select a column in the 4-by-4 grid.

  11. 11
    A 4-by-4 grid contains
    _____
    individual latch locations.
    Hint

    Multiply the number of rows by the number of columns.

    Answer

    16

    Explanation

    Four rows with four latches in each row provide sixteen locations.

  12. 12
    A two-bit decoder converts its input into four output signals, with one output indicating which input value is
    _____
    .
    Hint

    Only the output corresponding to the selected value should be on.

    Answer

    active

    Explanation

    The decoder activates the output associated with the current two-bit input value.

  13. 13
    To detect a two-bit input of zero, both input bits are first
    _____
    and then combined with an AND gate.
    Hint

    The decoder must turn two off bits into two on signals for the zero case.

    Answer

    inverted

    Explanation

    Inverting both inputs makes both signals high when the original two-bit value is zero, so an AND gate can detect it.

  14. 14
    A two-bit input of three is detected by an AND gate receiving both input bits
    _____
    .
    Hint

    For this value, both original bits are already on.

    Answer

    directly

    Explanation

    The input value three has both bits high, so the two bits can feed the AND gate without inversion.

  15. 15
    To detect the two-bit input of two, the first bit is off and the second bit is
    _____
    .
    Hint

    In the decoder's ordering, this value has only the second bit high.

    Answer

    on

    Explanation

    The input value two is detected when the first bit is off and the second bit is on.

  16. 16
    To detect the two-bit input of one, the first bit is
    _____
    and the second bit is off.
    Hint

    This is the opposite bit pattern from the value two.

    Answer

    on

    Explanation

    The input value one is detected when the first bit is on and the second bit is off.

  17. 17
    The row decoder and column decoder together select a latch only when its row and its column are both
    _____
    by the address.
    Hint

    Each decoder identifies one coordinate of the target location.

    Answer

    selected

    Explanation

    A latch is selected by the intersection of the row and column indicated by the address decoders.

  18. 18
    The bottom-left latch in the grid is selected when both its row and column address values are
    _____
    .
    Hint

    It is at the first row and first column of the grid.

    Answer

    zero

    Explanation

    The bottom-left latch is selected when the row and column values both indicate zero.

  19. 19
    A pair of NOR gates with each output feeding the other gate's input forms a latch that can hold one
    _____
    of data.
    Hint

    This is the smallest unit of digital information.

    Answer

    bit

    Explanation

    The cross-coupled NOR gates maintain a stable state representing one bit.

  20. 20
    The feedback between the two NOR gates keeps the stored bit
    _____
    in place.
    Hint

    The feedback preserves the state rather than letting it disappear immediately.

    Answer

    locked

    Explanation

    Each NOR gate feeds back into the other, maintaining the latch's stored state.

  21. 21
    The one-bit memory cell writes new input data only when the cell is selected and the
    _____
    signal is on.
    Hint

    This control signal authorizes writing to memory.

    Answer

    store

    Explanation

    The write condition requires both row-and-column selection and an active store signal.

  22. 22
    An AND gate in the memory cell checks whether both the row and column signals are active, indicating that the cell is
    _____
    .
    Hint

    The gate detects the intersection of the two address coordinates.

    Answer

    selected

    Explanation

    The row and column signals must both be active for that memory cell to be selected.

  23. 23
    A three-state buffer makes an unselected memory cell's output electrically
    _____
    rather than high or low.
    Hint

    The output is neither logic level when the cell is not enabled.

    Answer

    disconnected

    Explanation

    When disabled, the three-state buffer outputs neither a high nor a low logic level; it leaves the line disconnected.

  24. 24
    The output of a memory cell is enabled only when both its row and column signals are
    _____
    .
    Hint

    The cell must be selected in both dimensions.

    Answer

    on

    Explanation

    The cell outputs its stored state only if both row and column selection signals are active.

  25. 25
    Using a three-state output allows many cells to share an output line because unselected cells remain
    _____
    .
    Hint

    They do not drive the shared line with either logic value.

    Answer

    disconnected

    Explanation

    Only selected cells drive the output; all other cells are disconnected from the shared line.

  26. 26
    The startup state of the simulated latches may be
    _____
    rather than a known zero.
    Hint

    The initial value is not guaranteed by the simulation.

    Answer

    random

    Explanation

    The simulation's latch states can begin randomly, so a cell may initially output either value.

  27. 27
    A memory cell does not store a changed data input unless the
    _____
    signal is activated.
    Hint

    Changing data alone is not a write operation.

    Answer

    store

    Explanation

    The data input is written into the latch only when the store condition is met.

  28. 28
    Real-world memory cells can be highly optimized to use as few as
    _____
    transistors per cell.
    Hint

    The source describes this as a small single-digit transistor count.

    Answer

    six

    Explanation

    Highly optimized real-world memory cells can use as few as six transistors.

  29. 29
    Latch-based memory is used for relatively small memory chips because it is fast but takes up a lot of physical
    _____
    .
    Hint

    Its limitation concerns how much area it occupies on a chip.

    Answer

    space

    Explanation

    Latch-based storage is fast, but its relatively large physical footprint limits its use in larger memories.

  30. 30
    Memory made from capacitors is called
    _____
    memory because its contents must be refreshed continually.
    Hint

    The name refers to the ongoing activity needed to preserve its contents.

    Answer

    dynamic

    Explanation

    Dynamic memory uses capacitors and requires constant refreshing to maintain stored data.

  31. 31
    In capacitor-based memory, a charged capacitor represents a
    _____
    in the described bit model.
    Hint

    The uncharged state represents the other binary value.

    Answer

    one

    Explanation

    The example represents a charged capacitor as one and an empty capacitor as zero.

  32. 32
    Reading a capacitor-based memory cell can discharge the capacitor, causing the stored
    _____
    to be lost unless it is restored.
    Hint

    The stored information is what the read operation risks destroying.

    Answer

    data

    Explanation

    Reading discharges the capacitor, so the data must be rewritten to preserve it.

  33. 33
    Capacitor charge gradually leaks away, so dynamic memory must periodically read and
    _____
    its contents.
    Hint

    Refreshing restores the charge representing the stored bits.

    Answer

    rewrite

    Explanation

    Dynamic memory refresh circuitry repeatedly reads and rewrites data to counter charge leakage and destructive reads.

  34. 34
    A capacitor-based memory bit can be made compactly with one capacitor and one
    _____
    to control its output.
    Hint

    This component enables or disables access to the stored charge.

    Answer

    transistor

    Explanation

    The described compact memory cell uses a capacitor to store charge and a transistor to enable or disable output.

  35. 35
    Latch-based memory is called
    _____
    memory, in contrast with capacitor-based dynamic memory.
    Hint

    This is the memory type that does not require the same continual refreshing process.

    Answer

    static

    Explanation

    The latch-based approach is known as static memory, while capacitor-based storage is dynamic memory.

  36. 36
    Both static and dynamic memory require a constant source of power and are therefore forms of
    _____
    memory.
    Hint

    This category loses its data when power is removed.

    Answer

    volatile

    Explanation

    Volatile memory requires power to preserve its contents, so the data is lost when power is removed.

  37. 37
    To preserve data when a computer is powered down, it must be transferred to
    _____
    memory.
    Hint

    This type of storage retains information without continuous power.

    Answer

    persistent

    Explanation

    Persistent memory retains data when powered down, unlike volatile memory.

  38. 38
    A spinning hard disk stores data long-term by changing the magnetic
    _____
    of tiny regions on its disc.
    Hint

    The stored information depends on the orientation of magnetization.

    Answer

    polarity

    Explanation

    A hard disk records information by changing the magnetic polarity of small regions on the disc.

  39. 39
    A hard disk's moving arm and spinning disc make access time depend on the physical location of the requested
    _____
    .
    Hint

    The mechanism must move to the place where the requested information is stored.

    Answer

    data

    Explanation

    Because the disk must spin and its arm must move, some locations take longer to access than others.

  40. 40
    In the first memory grid, each one-bit memory cell stores
    _____
    bit.
    Hint

    The basic latch-based unit holds a single binary value.

    Answer

    one

    Explanation

    Each memory cell at the lowest level of the grid stores one bit.

  41. 41
    Sixteen one-bit cells arranged as a 4-by-4 grid form a unit named
    _____
    in the design.
    Hint

    Its name reflects the total number of bits it contains.

    Answer

    ME16

    Explanation

    The 4-by-4 grid contains sixteen one-bit cells and is named ME16.

  42. 42
    The ME16 unit contains
    _____
    memory cells, each holding one bit.
    Hint

    It is a 4-by-4 arrangement.

    Answer

    16

    Explanation

    A 4-by-4 grid consists of sixteen one-bit memory cells.

  43. 43
    Sixteen ME16 units arranged in another 4-by-4 grid provide
    _____
    bits of storage.
    Hint

    Each unit stores sixteen bits, and there are sixteen units.

    Answer

    256

    Explanation

    Sixteen groups of sixteen bits provide 256 bits of storage.

  44. 44
    An 8-bit address can identify
    _____
    distinct bit locations in the 256-bit memory.
    Hint

    Eight binary bits provide 256 possible address values.

    Answer

    256

    Explanation

    An 8-bit address can represent 256 different values, enough to identify each of the 256 bit locations.

  45. 45
    The 8-bit address for the 256-bit arrangement is divided into two 4-bit values: one selects a memory cell and the other selects a bit within that
    _____
    .
    Hint

    The nested grid has an outer location and an inner location.

    Answer

    cell

    Explanation

    One four-bit portion chooses an ME16 unit, while the other selects a one-bit cell within it.

  46. 46
    Duplicating the 256-bit memory eight times, with one bit from each copy forming an output, creates
    _____
    bytes of memory.
    Hint

    Eight parallel bits make one byte at each address.

    Answer

    256

    Explanation

    Eight copies provide eight bits per address, resulting in 256 addressable bytes overall.

  47. 47
    The 256-byte memory uses an
    _____
    -bit data input and an 8-bit address input.
    Hint

    A byte contains this many bits.

    Answer

    8

    Explanation

    The memory reads or writes one byte at a time, so its data input is eight bits wide; its address is also eight bits wide.

  48. 48
    Only one selected memory output is active at a time, so the cell outputs can be joined onto a shared
    _____
    .
    Hint

    This is the common path that carries the selected output.

    Answer

    bit line

    Explanation

    Because only one output is enabled at a time, the outputs can share a single bit line.

  49. 49
    A decimal display can show the numeric value represented by the memory's
    _____
    -bit output.
    Hint

    The output is one byte wide.

    Answer

    8

    Explanation

    The eight output bits can represent a value that is shown on a decimal display.

  50. 50
    At a given address, writing a new value to a different address leaves the original address's stored value
    _____
    .
    Hint

    Separate addresses refer to separate memory locations.

    Answer

    unchanged

    Explanation

    Writing to one address does not overwrite the data stored at another address.

  51. 51
    The memory is called random access memory because accessing any address takes the same amount of time regardless of the order of
    _____
    .
    Hint

    The name describes the lack of a required sequential access pattern.

    Answer

    access

    Explanation

    RAM allows direct access to locations without needing to read through preceding locations, so access time does not depend on their order.

  52. 52
    Unlike RAM, a hard disk's access time can vary because its disc and arm must move
    _____
    to a requested location.
    Hint

    Consider the mechanical movement involved in disk access.

    Answer

    physically

    Explanation

    The disk must rotate and its arm must swing to the target location, making access time location-dependent.

  53. 53
    Computers commonly use a large amount of relatively slow dynamic RAM and a smaller amount of very fast static RAM called the
    _____
    .
    Hint

    This small store sits close to the CPU.

    Answer

    cache

    Explanation

    The cache is a smaller, faster store of static RAM, while main RAM is typically larger and slower.

  54. 54
    The cache is placed close to the
    _____
    to reduce the time needed to retrieve data.
    Hint

    This is the processor that requests instructions and data.

    Answer

    CPU

    Explanation

    Keeping the cache near the CPU minimizes the time required to retrieve frequently needed data.

  55. 55
    When requested data is not in the cache, the computer fetches it from the slower main
    _____
    .
    Hint

    This is the larger primary memory store.

    Answer

    RAM

    Explanation

    A cache miss requires fetching the requested data from main RAM.

  56. 56
    After retrieving data from main RAM, a computer may also bring nearby data into the cache because the next request may use a nearby
    _____
    .
    Hint

    The strategy anticipates requests for locations close to the current one.

    Answer

    address

    Explanation

    Fetching surrounding data is useful if later memory requests access nearby addresses.

  57. 57
    The computer checks the cache first to see whether requested data is already
    _____
    .
    Hint

    A successful cache lookup avoids a trip to main memory.

    Answer

    there

    Explanation

    The cache is checked before main RAM so data already held nearby can be returned quickly.

  58. 58
    The initial memory grid's address can be divided so that two bits select the row and two bits select the column; each decoder receives a
    _____
    -bit input.
    Hint

    Each coordinate uses the same number of bits in a 4-by-4 grid.

    Answer

    2

    Explanation

    A 4-by-4 grid needs two bits to encode each coordinate, so each row or column decoder has a two-bit input.

  59. 59
    The 256-byte memory stores a different byte at each of its
    _____
    addresses.
    Hint

    The eight-bit address has that many possible values.

    Answer

    256

    Explanation

    An eight-bit address can select 256 byte locations in the memory.

  60. 60
    Changing the address while the asynchronous memory's store signal is on can accidentally overwrite data at unintended
    _____
    .
    Hint

    The active write signal may affect whichever location the changing address selects.

    Answer

    addresses

    Explanation

    Without clock synchronization, the store signal must not remain on while the address changes, or writes may occur at unintended locations.

  61. 61
    Because the original RAM has no clock synchronization, it is described as
    _____
    .
    Hint

    Its operation is not controlled by a clock edge.

    Answer

    asynchronous

    Explanation

    The RAM is asynchronous because its inputs are not synchronized to a clock signal.

  62. 62
    In an edge-triggered register, new input data is stored when the clock changes from low to high at the
    _____
    edge.
    Hint

    The signal is moving upward from its low level to its high level.

    Answer

    rising

    Explanation

    The register captures new inputs on the rising edge of the clock.

  63. 63
    Changing register inputs while the clock is already high does not store new data because the register responds only to the clock's
    _____
    edge.
    Hint

    The register does not respond continuously throughout the high state.

    Answer

    rising

    Explanation

    The register captures inputs at the instant the clock transitions from low to high, not merely while it is high.

  64. 64
    A register made from eight one-bit registers is an
    _____
    -bit register.
    Hint

    Each component stores one bit, and there are eight components.

    Answer

    8

    Explanation

    Eight one-bit registers together form an eight-bit register.

  65. 65
    To synchronize both the address and data going into asynchronous RAM, the design routes them through synchronous
    _____
    .
    Hint

    These components capture inputs on the clock edge.

    Answer

    registers

    Explanation

    Synchronous registers hold the address and data inputs stable between clock events before they reach the RAM.

  66. 66
    In the synchronized design, the data register is updated only when the
    _____
    signal is on.
    Hint

    This control determines whether new write data should be captured.

    Answer

    store

    Explanation

    The data register's store input is controlled by the RAM store signal, so data is captured only for a write.

  67. 67
    In that design, the address register's store input is tied permanently on so the address can be updated
    _____
    .
    Hint

    The address register is allowed to capture a new address whether or not a write is requested.

    Answer

    either way

    Explanation

    The address register is always enabled, unlike the data register, which updates only when the store signal is on.

  68. 68
    In real hardware, signals take time to settle, so enabling a write before the address has stabilized can cause a
    _____
    .
    Hint

    This is a timing problem caused by competing changes in signals.

    Answer

    race condition

    Explanation

    If the store signal is active while the address output is still settling, the RAM may receive an incorrect or unstable address.

  69. 69
    One proposed way to avoid the address-settling hazard is to register the store signal and delay it by one
    _____
    cycle.
    Hint

    The delay gives address signals time to settle before the write is enabled.

    Answer

    clock

    Explanation

    Delaying the registered store signal by one clock cycle can ensure the address has time to stabilize first.

  70. 70
    Connecting the address input directly to RAM allows the RAM output to reflect the most up-to-date
    _____
    without waiting for a clock pulse.
    Hint

    This input selects the location being read.

    Answer

    address

    Explanation

    A direct address connection makes the read output respond immediately to the current address.

  71. 71
    With a direct address input, the write is permitted only when the store signal is on and the input address matches the address held in the
    _____
    .
    Hint

    The registered address serves as the clock-synchronized reference for writing.

    Answer

    register

    Explanation

    Comparing the current input address with the registered address prevents a write to a changing, unsynchronized location.

  72. 72
    An exclusive OR gate outputs high when its two input bits are
    _____
    .
    Hint

    It detects a mismatch between its inputs.

    Answer

    different

    Explanation

    Exclusive OR indicates whether two bits differ.

  73. 73
    Inverting the exclusive OR output produces an exclusive NOR gate, which is high when the two input bits are
    _____
    .
    Hint

    It detects a match instead of a mismatch.

    Answer

    the same

    Explanation

    Exclusive NOR is the inverse of exclusive OR, so it outputs high when its inputs match.

  74. 74
    An 8-bit equality checker can be built from eight exclusive NOR gates and AND gates that verify all bit comparisons agree
    _____
    .
    Hint

    The overall result should be high only if every pair of bits matches.

    Answer

    unanimously

    Explanation

    Each exclusive NOR checks one pair of bits; AND gates combine the comparisons so the output is high only when all pairs match.

  75. 75
    If even one compared bit pair differs, the output of the 8-bit equality checker turns
    _____
    .
    Hint

    The overall AND condition fails when any comparison fails.

    Answer

    off

    Explanation

    A mismatch makes at least one exclusive NOR output low, causing the combined equality result to turn off.

  76. 76
    The equality signal prevents writes to other locations when the store signal remains on while the current input
    _____
    changes.
    Hint

    This is the value being checked against the registered reference.

    Answer

    address

    Explanation

    The RAM stores only when the input address equals the clock-synchronized address, avoiding unintended writes at other addresses.

  77. 77
    In the completed synchronized RAM, changing the address updates the read output immediately, but writing still requires the appropriate
    _____
    event.
    Hint

    The data and registered address are captured at a clock transition.

    Answer

    clock

    Explanation

    The direct address path makes reads update immediately, while storing data remains synchronized through the clocked registers.

  78. 78
    Changing the data input without an enabled store operation and clock event leaves the stored RAM contents
    _____
    .
    Hint

    The memory should not write merely because its data input changes.

    Answer

    unaffected

    Explanation

    RAM contents change only when the write conditions are satisfied and the clocked control registers capture the necessary values.

  79. 79
    The final construction is described as well-behaved RAM because it combines random access with
    _____
    write control.
    Hint

    Its writes are coordinated with clocked registers and address checking.

    Answer

    synchronized

    Explanation

    The design retains RAM's random access while synchronizing write control to avoid unintended writes.

  80. 80
    Tracing through the nested memory grids eventually leads from the byte-wide memory to a grid of 16-bit units, then to one-bit cells, and finally to the basic
    _____
    .
    Hint

    This is the cross-coupled storage element at the foundation of the design.

    Answer

    latch

    Explanation

    The nested memory construction ultimately reduces to the one-bit latch that stores each individual bit.

1 of 80
Question 1 of 80

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent