Building a Simple Computer
- 56Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What operations could the demonstrated ALU perform on the values held in its two 4-bit registers?
What operations could the demonstrated ALU perform on the values held in its two 4-bit registers?
56 questions
- 1
What operations could the demonstrated ALU perform on the values held in its two 4-bit registers?
- A
Multiplication and division
- B
Bit shifting and comparison
- C
Logic operations only
- D
Addition and subtraction
Correct answer
DAddition and subtraction
Explanation
The setup used its ALU to calculate with the register values, but the described operations were addition and subtraction.
- A
- 2
If the two 4-bit registers contain 15 and 10, what result does the ALU produce when set to subtract the second value from the first?
- A
5
- B
10
- C
150
- D
25
Correct answer
A5
Explanation
Subtracting 10 from 15 gives 5.
- A
- 3
How is a 4-bit register described as being constructed in the simulation?
- A
Four two-bit latches
- B
Eight one-bit buffers
- C
Four one-bit registers
- D
Two two-bit decoders
Correct answer
CFour one-bit registers
Explanation
Opening the 4-bit register reveals that it contains four one-bit registers.
- A
- 4
Why would building a large memory by duplicating complete clocked registers be wasteful?
- A
Each register requires a separate address decoder for every input wire
- B
Each register includes clock-synchronization logic that would be duplicated for every bit
- C
Registers can store only values that are permanently written at startup
- D
Registers cannot hold data while the ALU is performing a calculation
Correct answer
BEach register includes clock-synchronization logic that would be duplicated for every bit
Explanation
The clock-handling logic in each one-bit register would be repeated throughout a large memory, using extra resources unnecessarily.
- A
- 5
What is the fundamental one-bit memory element described before the larger memory grid is built?
- A
A decoder connected to a three-state buffer
- B
A capacitor connected to two inverters
- C
Two NOR gates whose outputs feed back into each other
- D
Two AND gates connected to a shared clock
Correct answer
CTwo NOR gates whose outputs feed back into each other
Explanation
The latch is made from a pair of NOR gates with each output feeding into the other gate's input, allowing it to retain a bit.
- A
- 6
How does the feedback between the two NOR gates allow the latch to remember a bit?
- A
It sustains the circuit's state after the input that set it is removed
- B
It converts the stored bit into a decimal number
- C
It refreshes a capacitor by charging it on every read
- D
It repeatedly sends the stored value to the clock input
Correct answer
AIt sustains the circuit's state after the input that set it is removed
Explanation
The cross-coupled feedback holds the circuit in its current state, keeping a single bit locked in place.
- A
- 7
How many bits of information can one latch in the described design store?
- A
One bit
- B
Eight bits
- C
Four bits
- D
Two bits
Correct answer
AOne bit
Explanation
Each latch is a one-bit memory element.
- A
- 8
What does the simulation show at the output of a memory cell when that cell is not selected?
- A
The output repeats the data input continuously
- B
The output is forced to a high logic level
- C
The output is disconnected and is neither high nor low
- D
The output is forced to a low logic level
Correct answer
CThe output is disconnected and is neither high nor low
Explanation
A three-state buffer disconnects an unselected cell's output, so it drives neither a high nor a low logic level.
- A
- 9
What circuit element allows an unselected memory cell to disconnect its output?
- A
An exclusive-NOR gate
- B
A three-state buffer
- C
A capacitor
- D
A clocked register
Correct answer
BA three-state buffer
Explanation
The three-state buffer can place the output in a disconnected state unless the cell is selected.
- A
- 10
Why can the outputs of multiple memory cells be joined onto one shared line in the design?
- A
Every cell stores the same value at all times
- B
The shared line automatically adds the cell values together
- C
The row decoder forces every unselected cell to output zero
- D
Only the selected cell is allowed to actively output its data
Correct answer
DOnly the selected cell is allowed to actively output its data
Explanation
The selection logic and three-state buffers ensure that only one cell drives the output at a time, allowing the outputs to share a line.
- A
- 11
How many individual one-bit latches are arranged in a 4×4 memory grid?
- A
16
- B
8
- C
4
- D
32
Correct answer
A16
Explanation
A grid with four rows and four columns contains 4×4=16 one-bit latches.
- A
- 12
How many address bits are needed to select one of the 16 latches in a 4×4 grid?
- A
Four bits
- B
Three bits
- C
Two bits
- D
Sixteen bits
Correct answer
AFour bits
Explanation
Four address bits can represent 16 different combinations, enough to select any of the 16 latches.
- A
- 13
In the described 4×4 grid, how are the four address bits divided between row and column selection?
- A
One bit specifies the row and three specify the column
- B
All four bits specify the row, while the column is fixed
- C
Three bits specify the row and one specifies the column
- D
Two bits specify the row and two specify the column
Correct answer
DTwo bits specify the row and two specify the column
Explanation
The grid uses two address bits for the row and the other two for the column.
- A
- 14
What does a decoder for a two-bit input produce in this memory design?
- A
Four outputs, with one indicating the selected input value
- B
Eight outputs, one for every possible pair of input values
- C
Two outputs, each duplicating one input bit
- D
One output that is high for every nonzero input
Correct answer
AFour outputs, with one indicating the selected input value
Explanation
A two-bit input has four possible values, and the decoder produces four individual outputs to indicate which value is selected.
- A
- 15
How does the described decoder recognize the two-bit input value 0?
- A
It ANDs the two input bits without inverting them
- B
It ORs both input bits and inverts the result
- C
It inverts the first bit and ORs it with the second
- D
It inverts both input bits and ANDs the results
Correct answer
DIt inverts both input bits and ANDs the results
Explanation
The value 0 has both bits off, so the decoder inverts both inputs and ANDs the resulting high signals.
- A
- 16
How does the decoder recognize the two-bit input value 3?
- A
It inverts both input bits and ANDs them
- B
It inverts the first bit and ANDs it with the second
- C
It ANDs the two input bits directly
- D
It ORs the two input bits directly
Correct answer
CIt ANDs the two input bits directly
Explanation
The two-bit representation of 3 has both bits on, so a direct AND of the inputs detects it.
- A
- 17
For the described two-bit decoder, which input condition represents the value 2?
- A
The first bit is on and the second bit is off
- B
The first bit is off and the second bit is on
- C
Both bits are off
- D
Both bits are on
Correct answer
BThe first bit is off and the second bit is on
Explanation
The decoder treats the first input as the lower bit, so the value 2 is represented by the first bit off and the second bit on.
- A
- 18
For the described two-bit decoder, which input condition represents the value 1?
- A
Both bits are on
- B
Both bits are off
- C
The first bit is on and the second bit is off
- D
The first bit is off and the second bit is on
Correct answer
CThe first bit is on and the second bit is off
Explanation
The value 1 is represented by the first bit on and the second bit off.
- A
- 19
When should a one-bit memory cell accept its input data for storage?
- A
Only when its row and column are both unselected
- B
Whenever either its row or its column is selected, regardless of the store signal
- C
When the cell is selected by both its row and column and the store signal is on
- D
Whenever the data input changes, even if the cell is not selected
Correct answer
CWhen the cell is selected by both its row and column and the store signal is on
Explanation
The cell's selection logic checks that both row and column are active, and it writes input data only when the store signal is also on.
- A
- 20
What happens to a memory cell's store operation if either its row or column selection is inactive?
- A
The cell is inactive and does not store the input
- B
The cell stores the input only if the data bit is high
- C
The cell stores the input but disconnects its output
- D
The cell activates every cell in the same row
Correct answer
AThe cell is inactive and does not store the input
Explanation
Both row and column selection inputs must be active; if either is off, the cell is inactive and the store signal has no effect.
- A
- 21
How can a 4×4 grid be made usable as one cell in a larger grid?
- A
Remove its address input and connect every latch to the same output
- B
Make all its internal cells active simultaneously
- C
Replace its data input with a second clock input
- D
Give the grid its own row and column selection inputs
Correct answer
DGive the grid its own row and column selection inputs
Explanation
The grid can be selected as a larger memory cell by adding its own row and column inputs, along with its data and store signals.
- A
- 22
Why can one 4×4 grid of one-bit cells be placed inside another 4×4 grid to address 256 bits?
- A
Each address bit independently stores one byte in both grids
- B
Each outer-grid position stores 256 bits, so the inner grid is unnecessary
- C
Each outer-grid position selects a 16-bit group, and the inner address selects one of its bits
- D
The outer grid uses eight rows and the inner grid uses eight columns
Correct answer
CEach outer-grid position selects a 16-bit group, and the inner address selects one of its bits
Explanation
Each inner 4×4 grid contains 16 bits, and the outer grid selects among 16 such groups, for 16×16=256 bits total.
- A
- 23
What distinguishes the latch-based memory described from the capacitor-based memory used for larger capacities?
- A
Both are called static memory because they can store a bit
- B
Both are called dynamic memory because each requires an address decoder
- C
Latch-based memory is static memory, while capacitor-based memory is dynamic memory
- D
Latch-based memory is dynamic memory, while capacitor-based memory is static memory
Correct answer
CLatch-based memory is static memory, while capacitor-based memory is dynamic memory
Explanation
The latch-based approach is called static memory, while capacitor-based memory is called dynamic memory because it requires refreshing.
- A
- 24
Why is latch-based memory used mainly for relatively small memory chips in the described comparison?
- A
It is compact but loses its data whenever it is read
- B
It requires a mechanical arm to select a stored bit
- C
It is fast but takes up relatively large physical space
- D
It cannot be connected to address decoders
Correct answer
CIt is fast but takes up relatively large physical space
Explanation
The content describes latch-based memory as fast but physically large, making it suitable for smaller capacities rather than gigabytes.
- A
- 25
How does a capacitor represent a bit in the described dynamic-memory example?
- A
A charged capacitor represents 1, while an uncharged one represents 0
- B
A charged capacitor represents 0, while an uncharged one represents 1
- C
The direction of its current represents 1, while its size represents 0
- D
A capacitor represents a bit only while the clock is changing
Correct answer
AA charged capacitor represents 1, while an uncharged one represents 0
Explanation
The example represents an empty capacitor as 0 and a charged capacitor as 1.
- A
- 26
What happens to the stored information when the described capacitor memory is read?
- A
Reading strengthens the charge, making the information permanent
- B
Reading changes the bit from 1 to 0 only if the store signal is on
- C
Reading transfers the charge to the row decoder without affecting it
- D
Reading discharges the capacitor, so the stored information is lost
Correct answer
DReading discharges the capacitor, so the stored information is lost
Explanation
The described read operation discharges the capacitor, which destroys the stored charge and therefore loses the bit.
- A
- 27
Why does capacitor-based dynamic memory need its contents to be refreshed?
- A
Its decoder periodically changes every address
- B
Its data is automatically erased whenever another address is selected
- C
The charge leaks away over time, and reading can discharge it
- D
The clock signal slowly turns each stored 1 into a 0
Correct answer
CThe charge leaks away over time, and reading can discharge it
Explanation
The charge leaks away over time, and reading discharges it, so extra circuitry must repeatedly read and rewrite the contents.
- A
- 28
What makes the described capacitor-based memory especially compact?
- A
Each bit requires two complete clocked registers
- B
One capacitor and one transistor can store and control access to a bit
- C
Each bit uses four decoders and a decimal display
- D
Each bit is stored by a separate spinning magnetic disc
Correct answer
BOne capacitor and one transistor can store and control access to a bit
Explanation
The content explains that a bit can be stored with one capacitor and one transistor that enables or disables the output.
- A
- 29
Which description applies to both latch-based static memory and capacitor-based dynamic memory?
- A
Both require a mechanical arm to access each address
- B
Both can be read only once before being replaced
- C
Both preserve their data without power by storing magnetic polarity
- D
Both are volatile and lose their data when power is removed
Correct answer
DBoth are volatile and lose their data when power is removed
Explanation
Both types require a constant power source; without power, their stored data is lost, so they are volatile memory.
- A
- 30
How does the described spinning-disc persistent memory retain data long-term?
- A
By storing each bit in the position of a clock signal
- B
By maintaining feedback between pairs of NOR gates
- C
By keeping electrical charge in a capacitor that never leaks
- D
By changing the magnetic polarity of tiny regions on the disc
Correct answer
DBy changing the magnetic polarity of tiny regions on the disc
Explanation
The spinning-disc example stores data by changing the magnetic polarity of tiny regions on the disc.
- A
- 31
Why can access time to a spinning-disc drive vary depending on the requested location?
- A
The drive refreshes every capacitor before producing an output
- B
The disc must spin and its arm must move to the needed location
- C
The address decoder must rebuild the requested memory grid
- D
The CPU cache must transfer all stored bits to the disc first
Correct answer
BThe disc must spin and its arm must move to the needed location
Explanation
The disc and its arm physically move, so reaching different locations can take different amounts of time.
- A
- 32
What real-world implementation detail is mentioned for highly optimized memory cells?
- A
Some cells use as few as six transistors
- B
Every cell uses a pair of spinning discs
- C
Every cell uses eight capacitors and a decimal decoder
- D
All cells are built from complete 4-bit registers
Correct answer
ASome cells use as few as six transistors
Explanation
The content notes that real-world memory cells can be highly optimized and use as few as six transistors.
- A
- 33
What capacity does the nested pair of 4×4 grids provide before it is replicated into bytes?
- A
256 bits
- B
256 bytes
- C
64 bytes
- D
16 bits
Correct answer
A256 bits
Explanation
The outer grid selects one of 16 inner groups, each containing 16 one-bit cells, giving 16×16=256 bits.
- A
- 34
How many copies of a 256-bit memory cell are combined to create the described 256-byte memory?
- A
Eight copies
- B
Two hundred fifty-six copies
- C
Sixteen copies
- D
Four copies
Correct answer
AEight copies
Explanation
Eight copies are used so that the eight bit outputs together form a byte at each address.
- A
- 35
Why does the described 256-byte memory use an 8-bit data input and an 8-bit data output?
- A
The memory stores eight separate decimal digits at every address
- B
Each address has eight rows, and each row needs a separate data signal
- C
Each cell can store only one of the eight possible addresses
- D
Each addressed location stores one byte, which contains eight bits
Correct answer
DEach addressed location stores one byte, which contains eight bits
Explanation
The design combines eight one-bit memory cells so that a location holds an 8-bit byte.
- A
- 36
How many distinct byte locations can an 8-bit address select?
- A
256
- B
16
- C
128
- D
8
Correct answer
A256
Explanation
An 8-bit address has 28=256 possible values, so it can select 256 byte locations.
- A
- 37
In the nested memory arrangement, what do the upper four address bits select?
- A
The store signal for the entire memory
- B
One of the 16 groups of 16 bits
- C
One of the eight bits in the output byte
- D
One of the four rows in the innermost grid
Correct answer
BOne of the 16 groups of 16 bits
Explanation
The upper four bits select one of the 16 larger cells, each of which contains 16 individual bit cells.
- A
- 38
In that same nested arrangement, what do the lower four address bits select?
- A
One of the memory's store or data inputs
- B
One of the 16 one-bit cells inside the selected group
- C
One of the 16 groups in the outer grid
- D
One of the eight copies used to make a byte
Correct answer
BOne of the 16 one-bit cells inside the selected group
Explanation
After the upper bits select a group, the lower four bits select one of the 16 one-bit cells within that group.
- A
- 39
What is the defining access-time property of random access memory in the described comparison?
- A
Access time depends on how far a mechanical arm must swing
- B
Accessing addresses takes longer in proportion to their numerical value
- C
Accessing any address takes the same amount of time
- D
Only consecutive addresses can be accessed in equal time
Correct answer
CAccessing any address takes the same amount of time
Explanation
The described RAM takes the same amount of time to jump between any two addresses, unlike mechanically accessed disc storage.
- A
- 40
Why might programmers still care about the order in which they request data from RAM?
- A
The RAM decoder can select only the most recently used address
- B
Nearby requests may be served faster if the data is already in cache
- C
Requests must always proceed in increasing address order to avoid data loss
- D
Random access becomes impossible when addresses are requested out of order
Correct answer
BNearby requests may be served faster if the data is already in cache
Explanation
Computers use a cache that may already contain nearby data, so access patterns can affect whether data is available quickly.
- A
- 41
What type of memory is described as the small, very fast cache close to the CPU?
- A
Capacitor-only persistent memory
- B
Magnetic-disc storage
- C
Dynamic RAM
- D
Static RAM
Correct answer
DStatic RAM
Explanation
The cache is described as a smaller amount of very fast static RAM positioned close to the CPU.
- A
- 42
What is the typical relationship between main RAM and cache in the described computer memory hierarchy?
- A
Main RAM is persistent, while cache is stored on a spinning disc
- B
Main RAM is larger and relatively slow, while cache is smaller and faster
- C
Both have the same capacity and speed, but store different data types
- D
Main RAM is smaller and faster, while cache is larger and slower
Correct answer
BMain RAM is larger and relatively slow, while cache is smaller and faster
Explanation
The computer is described as having a large amount of relatively slow dynamic RAM and a much smaller amount of very fast static RAM for cache.
- A
- 43
What does the computer do when requested data is not already in cache?
- A
It fetches the data from main RAM and brings nearby data into cache as well
- B
It searches the magnetic polarity of every location on the hard drive
- C
It waits for the user to move the requested data into a register
- D
It disables cache and reads all memory locations sequentially
Correct answer
AIt fetches the data from main RAM and brings nearby data into cache as well
Explanation
On a cache miss, the computer fetches the requested data from slower main RAM and also brings along surrounding data in anticipation of nearby requests.
- A
- 44
What is the main reason the computer brings surrounding data into cache when retrieving requested data?
- A
The computer must refresh all of dynamic RAM after every access
- B
The next request may be for a nearby address
- C
Nearby addresses always contain identical values
- D
The cache cannot store the requested address by itself
Correct answer
BThe next request may be for a nearby address
Explanation
Fetching surrounding data is based on the expectation that the next memory request may be at a nearby address.
- A
- 45
Why is an asynchronous RAM vulnerable to unintended writes when its store signal remains on as the address changes?
- A
The data input is forced to zero whenever the store signal is on
- B
Changing the address automatically turns every stored bit into a clock signal
- C
The newly selected addresses may receive the current input data while store is active
- D
The RAM output becomes disconnected whenever the address changes
Correct answer
CThe newly selected addresses may receive the current input data while store is active
Explanation
Without clock synchronization, an active store signal can cause data to be written as the address changes, potentially overwriting unintended locations.
- A
- 46
At what point does the described clocked register capture new input data?
- A
At any time while the clock is high
- B
On the rising edge, when the clock changes from low to high
- C
At any time while the clock is low
- D
Only when the clock changes from high to low
Correct answer
BOn the rising edge, when the clock changes from low to high
Explanation
The register accepts new data during the brief low-to-high transition, called the rising edge.
- A
- 47
What happens if the inputs to the described register change while the clock is already high or remains low?
- A
The register does not capture those changes until a rising edge
- B
The register immediately stores every change while the clock is high
- C
The register clears its stored value whenever either level is held
- D
The register captures changes only while the clock is low
Correct answer
AThe register does not capture those changes until a rising edge
Explanation
Input changes take effect only on the rising edge; changing inputs while the clock is high or low does not update the register.
- A
- 48
In the initial clock-synchronization approach, when is the data register updated?
- A
Only when the store signal is off and the clock falls
- B
Whenever the address changes, regardless of the clock
- C
Only when the store signal enables it and a rising clock edge occurs
- D
Whenever the clock is high, even without a rising edge
Correct answer
COnly when the store signal enables it and a rising clock edge occurs
Explanation
The data register's store input is controlled by the store signal, and the register captures its input on a rising clock edge.
- A
- 49
Why can directly connecting a changing address to asynchronous RAM while store is active create a timing problem in real hardware?
- A
The data register changes every address bit into an unknown value
- B
The address register always erases RAM before its output stabilizes
- C
The RAM cannot decode an address unless the clock is held high
- D
Signals take time to settle, so an unstable address may briefly select the wrong location
Correct answer
DSignals take time to settle, so an unstable address may briefly select the wrong location
Explanation
Real signals do not settle instantaneously; if store is active while the address output is unstable, the wrong location could be selected briefly.
- A
- 50
What is one proposed way to reduce the risk that a store signal arrives before the address has settled?
- A
Register the store signal and use logic to delay it by one clock cycle
- B
Remove the address register and keep the store signal permanently on
- C
Invert the data input whenever the address changes
- D
Connect the store signal directly to every address bit
Correct answer
ARegister the store signal and use logic to delay it by one clock cycle
Explanation
The content suggests registering the store signal and delaying it by one clock cycle so the address has time to settle.
- A
- 51
What inconvenience arises if the RAM address is read only from a clocked address register?
- A
The RAM cannot store data at the registered address
- B
A newly selected address is not seen by RAM until the next clock pulse
- C
The RAM output changes continuously even when the address is fixed
- D
The data output must be converted to decimal before it can be read
Correct answer
BA newly selected address is not seen by RAM until the next clock pulse
Explanation
When the address is held in a clocked register, RAM does not see a newly entered address until the next rising clock edge.
- A
- 52
How does the revised design allow RAM's output to reflect the most up-to-date address while still protecting writes?
- A
It disconnects the address input and selects locations using the data value
- B
It connects the input address directly to RAM but permits storage only when it matches the registered address
- C
It allows writes only when the address input differs from the registered address
- D
It stores every address in RAM immediately but delays the output by one cycle
Correct answer
BIt connects the input address directly to RAM but permits storage only when it matches the registered address
Explanation
The direct address input makes reads respond immediately, while a match with the clocked address register is required before a write is permitted.
- A
- 53
Which logic operation is used to test whether two one-bit values are the same in the described design?
- A
OR
- B
Exclusive NOR
- C
Exclusive OR
- D
AND
Correct answer
BExclusive NOR
Explanation
Exclusive OR detects whether two bits differ; inverting its output gives exclusive NOR, which is high when they match.
- A
- 54
How is the described 8-bit equality test assembled from one-bit comparison results?
- A
Four AND results are inverted and combined with a decoder
- B
Eight exclusive-OR results are combined with OR gates
- C
Eight exclusive-NOR results are combined with AND gates
- D
Two three-state buffers are connected to a clock register
Correct answer
CEight exclusive-NOR results are combined with AND gates
Explanation
Each of the eight bit pairs is compared with an exclusive-NOR gate, and AND gates check that all eight comparisons indicate a match.
- A
- 55
Under what combined condition does the revised RAM design allow a write?
- A
The data input is zero and the address register is changing
- B
The clock is high and at least one address bit differs
- C
The store signal is on and the input address matches the registered address
- D
The store signal is off and the input address differs from the registered address
Correct answer
CThe store signal is on and the input address matches the registered address
Explanation
The store is permitted only when the store signal is on and the equality circuit confirms that the direct address matches the clock-synchronized address.
- A
- 56
What happens if the store signal is changed without a clock pulse in the described synchronized design?
- A
Every address is overwritten with the current data
- B
The memory contents remain unchanged
- C
The output is forced to zero
- D
The current address is stored in the data register
Correct answer
BThe memory contents remain unchanged
Explanation
The described test confirms that changing the store signal without a clock pulse does not write new data into memory.
- A

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