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

  • 49Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Memory Basics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What did the computer setup's two 4-bit registers do?

Tap to flipClick to flipspace

Each register stored one value, which the ALU could use for addition or subtraction.

Or swipe the card

49 cards

  1. What did the computer setup's two 4-bit registers do?

    Each register stored one value, which the ALU could use for addition or subtraction.

  2. What is the purpose of main memory compared with working registers?

    Registers hold values being worked on immediately; main memory provides more storage for results that can be accessed later.

  3. How does the basic latch used in the memory design store a bit?

    Two NOR gates feed their outputs back into each other's inputs, maintaining one bit of state.

  4. Why use simple latches as memory building blocks instead of one-bit clocked registers?

    Clocked registers contain synchronization logic that would be wasteful and slow to duplicate for every memory bit.

  5. What is the basic strategy for building a larger memory from latches?

    Arrange latches in a grid and activate an individual latch according to the memory address.

  6. What inputs does the one-bit memory cell use in addition to data and store?

    It also receives row and column selection inputs.

  7. When does the one-bit memory cell write its input data?

    Only when the cell is selected by both its row and column inputs and the store signal is on.

  8. How does a three-state buffer represent an unselected memory cell's output?

    It disconnects the output, so the signal is neither logic high nor logic low.

  9. How many address bits are needed to select among the cells in a 4×44 \times 44×4 grid?

    Four bits: two identify the row and two identify the column.

  10. What does a 2-to-4 decoder do?

    It converts a 2-bit input into four outputs, with one output indicating the selected value from 0 to 3.

  11. Which decoder output is active for input 000000, and how can it be detected?

    Output 0 is active; invert both input bits and AND the inverted signals.

  12. How is decoder input 111111 detected?

    AND the two input bits directly; both must be high.

  13. How are decoder inputs 101010 and 010101 detected?

    For 101010, the first bit is high and the second is low; for 010101, the first is low and the second is high.

  14. How do row and column decoders select one latch in a memory grid?

    An AND gate activates a latch only when the decoder output for its row and the decoder output for its column are both active.

  15. How many one-bit cells are in a 4×44 \times 44×4 grid?

    Sixteen one-bit cells.

  16. What does the ME16 memory block contain?

    A 4×44 \times 44×4 grid of 16 one-bit memory cells, for 16 bits total.

  17. How does the larger grid built from ME16 blocks address its internal memory?

    The top four address bits select one of 16 ME16 blocks; the bottom four select one of the 16 bits inside that block.

  18. How many individual bits can a 4×44 \times 44×4 grid of ME16 blocks address?

    16×16=25616 \times 16 = 25616×16=256 bits.

  19. What does the ME256 block represent?

    A memory block containing 256 addressable bits.

  20. How does the design expand from 256 bits to 256 bytes?

    It uses eight parallel 256-bit memory blocks, one for each bit of an 8-bit data value.

  21. How many byte locations can an 8-bit address select?

    28=2562^8 = 25628=256 byte locations.

  22. Why can the outputs of the memory cells be joined on a shared data line?

    Address selection ensures that only one cell actively outputs data at a time.

  23. What does it mean for a memory to retain data at different addresses?

    Writing data at one address does not overwrite the values stored at other addresses.

  24. How many transistors may a highly optimized real-world memory cell use, according to the content?

    As few as six transistors.

  25. What are the trade-offs of latch-based static memory?

    It is very fast but takes up relatively large physical space, so it is used for comparatively small memory chips.

  26. How does a capacitor represent a bit?

    An uncharged capacitor represents 0; a charged capacitor represents 1.

  27. Why must capacitor-based memory be refreshed?

    Reading discharges the capacitor, and its charge also leaks away over time, so circuitry must repeatedly read and rewrite the data.

  28. Why is capacitor-based dynamic memory compact?

    A bit can be stored using one capacitor and one transistor to control access.

  29. What is the difference between static and dynamic memory in the described designs?

    Static memory stores bits with latches; dynamic memory stores bits as capacitor charge and requires continual refreshing.

  30. Why are both static and dynamic memory examples of volatile memory?

    Both require a continuous power supply; their data is lost when power is removed.

  31. How can a hard disk store data persistently?

    It changes the magnetic polarity of tiny regions on a spinning disc.

  32. Why is this memory called random access memory (RAM)?

    Accessing a chosen address takes the same amount of time regardless of its location, unlike a mechanically moving disk.

  33. Why can access order matter to programmers even when memory is random access?

    Nearby memory requests can benefit from cache behavior, so programmers may care about data locality.

  34. How do main RAM and cache typically differ?

    Main RAM is larger and relatively slow, while cache is smaller, faster static RAM located close to the CPU.

  35. What happens when the CPU requests data that is already in cache?

    The computer can provide it from the fast cache without fetching it from slower main RAM.

  36. What happens on a cache miss?

    The computer fetches the requested data from main RAM and typically brings nearby data into the cache as well.

  37. Why does a cache bring nearby data along when fetching a requested value?

    The next request may be for a nearby address, allowing it to be served from cache.

  38. Why can an asynchronous RAM be accidentally overwritten while changing its address?

    If the store signal is on during an address change, the RAM may write data to the newly selected address.

  39. When does a clocked register accept new input data?

    On the rising edge of the clock, when the signal changes from low to high.

  40. What happens to a clocked register's data inputs while the clock remains high or low?

    Changing the inputs alone does not update the register; a rising clock edge is required.

  41. How can clocked registers make interaction with asynchronous RAM safer?

    They hold the address and data stable between clock edges before those values are sent to RAM.

  42. In the described register-based RAM interface, when is the data register updated?

    Only when the store signal is on and a rising clock edge occurs.

  43. How is the address register configured in the described interface?

    Its store input is always enabled, so it can capture a new address on each rising clock edge.

  44. Why might using a registered store signal help in real hardware?

    It can delay a write until the address signal has had time to settle, reducing timing hazards.

  45. How can RAM output respond immediately to a new address without waiting for a clock edge?

    Connect the address input directly to RAM rather than using only the clocked address register.

  46. When should the direct-address RAM be allowed to write in the described design?

    Only when the store signal is on and the current input address matches the address held in the register.

  47. What does an XNOR gate indicate about two one-bit inputs?

    It outputs high when the two inputs are the same.

  48. How is equality between two 8-bit values tested in the described circuit?

    Compare corresponding bits with eight XNOR gates, then AND their outputs so the result is high only if every pair matches.

  49. How does the address-equality check prevent unintended writes while still allowing immediate reads?

    The output follows the current address directly, but writing is permitted only when that address matches the clocked address and store is enabled.

Card 1 of 49
Card 1 of 49

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent