1What does the acronym ROM stand for in digital electronics?
Read-only memory
Easy
A.Random-Online Memory
B.Read-Once Memory
C.Rapid-Output Memory
D.Read-Only Memory
Correct Answer: Read-Only Memory
Explanation:
ROM stands for Read-Only Memory. It is a type of non-volatile memory where data is permanently stored and cannot be easily altered or removed, primarily used for firmware.
Incorrect! Try again.
2Which type of memory is volatile, meaning it loses its data when the power is turned off?
Read/Write memory- SRAM and DRAM
Easy
A.RAM
B.Flash Memory
C.ROM
D.EPROM
Correct Answer: RAM
Explanation:
RAM (Random-Access Memory), which includes both SRAM and DRAM, is volatile. It requires constant power to maintain the stored information.
Incorrect! Try again.
3Which type of RAM requires its contents to be periodically refreshed to prevent data loss?
Read/Write memory- SRAM and DRAM
Easy
A.MRAM (Magnetoresistive RAM)
B.SRAM (Static RAM)
C.ROM (Read-Only Memory)
D.DRAM (Dynamic RAM)
Correct Answer: DRAM (Dynamic RAM)
Explanation:
DRAM stores each bit of data in a small capacitor, which leaks charge over time. Therefore, it must be periodically refreshed to retain its data.
Incorrect! Try again.
4What does PAL stand for in the context of programmable logic devices?
PALs and their applications
Easy
A.Programmable Access Layer
B.Programmed AND Logic
C.Primary Access Logic
D.Programmable Array Logic
Correct Answer: Programmable Array Logic
Explanation:
PAL stands for Programmable Array Logic. It is a type of PLD with a programmable AND plane and a fixed OR plane.
Incorrect! Try again.
5What is the key architectural feature of a Programmable Logic Array (PLA)?
PLAs and their applications
Easy
A.Neither array is programmable
B.Only the OR array is programmable
C.Both AND and OR arrays are programmable
D.Only the AND array is programmable
Correct Answer: Both AND and OR arrays are programmable
Explanation:
A PLA is characterized by having both a programmable AND array and a programmable OR array, which makes it more flexible than a PAL.
Incorrect! Try again.
6What does the acronym FPGA stand for?
Introduction to field programmable gate arrays
Easy
A.Field-Programmable Gate Array
B.Fixed-Program Gate Array
C.Fast-Programmable Gate Array
D.Field-Protocol Gate Architecture
Correct Answer: Field-Programmable Gate Array
Explanation:
FPGA stands for Field-Programmable Gate Array. It is an integrated circuit that can be configured by the user after manufacturing to implement custom digital logic.
Incorrect! Try again.
7What component is added to a combinational PLD to create a sequential PLD?
Sequential PLDs and their applications
Easy
A.Flip-flops or registers
B.More AND gates
C.Capacitors
D.Resistors
Correct Answer: Flip-flops or registers
Explanation:
Sequential PLDs incorporate memory elements, such as flip-flops or registers, along with combinational logic gates. This allows them to store state information and implement sequential circuits like counters and state machines.
Incorrect! Try again.
8Which type of ROM can be erased by exposing it to ultraviolet (UV) light?
Read-only memory
Easy
A.PROM
B.EEPROM
C.EPROM
D.Mask ROM
Correct Answer: EPROM
Explanation:
EPROM stands for Erasable Programmable Read-Only Memory. It has a transparent quartz window on the package that allows UV light to pass through and erase the data, allowing it to be reprogrammed.
Incorrect! Try again.
9The basic storage cell of a Static RAM (SRAM) is a...
Read/Write memory- SRAM and DRAM
Easy
A.Resistor
B.Flip-flop
C.Capacitor
D.Fuse link
Correct Answer: Flip-flop
Explanation:
SRAM uses a bistable latching circuitry, typically a flip-flop, to store each bit. This is why it does not need refreshing but is larger and more expensive per bit than DRAM.
Incorrect! Try again.
10In a PAL's architecture, the AND array is and the OR array is .
PALs and their applications
Easy
A.Fixed, Programmable
B.Fixed, Fixed
C.Programmable, Programmable
D.Programmable, Fixed
Correct Answer: Programmable, Fixed
Explanation:
The defining characteristic of a PAL (Programmable Array Logic) is its structure, which features a programmable AND plane and a fixed OR plane.
Incorrect! Try again.
11Which type of RAM is generally faster and is often used for CPU cache?
Read/Write memory- SRAM and DRAM
Easy
A.Flash Memory
B.DRAM
C.SRAM
D.SDRAM
Correct Answer: SRAM
Explanation:
SRAM (Static RAM) is much faster than DRAM because it doesn't have refresh cycles. Its high speed makes it ideal for use as cache memory to bridge the speed gap between the CPU and slower main memory (DRAM).
Incorrect! Try again.
12A computer's BIOS (Basic Input/Output System) is typically stored in which type of memory to ensure it's available on startup?
Read-only memory
Easy
A.SRAM cache
B.Non-volatile memory like ROM or Flash
C.The hard disk drive only
D.Volatile memory like DRAM
Correct Answer: Non-volatile memory like ROM or Flash
Explanation:
The BIOS must be retained when the computer is powered off, so it is stored in non-volatile memory. Modern systems use Flash memory (a type of EEPROM) for this purpose.
Incorrect! Try again.
13Compared to a PAL, a PLA is generally considered more...
PLAs and their applications
Easy
A.Simple
B.Fast
C.Flexible
D.Low-power
Correct Answer: Flexible
Explanation:
Because a PLA has both a programmable AND plane and a programmable OR plane, it offers greater flexibility in implementing logic functions compared to a PAL's fixed OR plane.
Incorrect! Try again.
14What is the fundamental, reprogrammable building block inside an FPGA?
Introduction to field programmable gate arrays
Easy
A.AND-OR Gate
B.Arithmetic Logic Unit (ALU)
C.Configurable Logic Block (CLB)
D.Memory Cell
Correct Answer: Configurable Logic Block (CLB)
Explanation:
An FPGA consists of an array of Configurable Logic Blocks (CLBs) or Logic Elements (LEs). These blocks typically contain look-up tables (LUTs), flip-flops, and multiplexers, and can be programmed to perform a desired logic function.
Incorrect! Try again.
15What is the primary purpose of the registered outputs in a sequential PLD?
Sequential PLDs and their applications
Easy
A.To combine multiple logic signals
B.To amplify the output voltage
C.To provide a direct combinational path
D.To store state information between clock cycles
Correct Answer: To store state information between clock cycles
Explanation:
The registers (usually D-type flip-flops) at the outputs of a sequential PLD are used to hold the current state of a sequential machine. The next state is determined by the inputs and the current state on each clock edge.
Incorrect! Try again.
16What are the two main types of Read/Write memory?
Read/Write memory- SRAM and DRAM
Easy
A.SRAM and DRAM
B.PAL and PLA
C.EPROM and EEPROM
D.ROM and PROM
Correct Answer: SRAM and DRAM
Explanation:
The two primary categories of semiconductor read/write memory are SRAM (Static RAM) and DRAM (Dynamic RAM). They are both volatile but differ in their underlying technology, speed, and cost.
Incorrect! Try again.
17What does it mean for a memory device to be "non-volatile"?
Read-only memory
Easy
A.It loses data without power
B.It can only be written to once
C.It retains data without power
D.It is extremely fast
Correct Answer: It retains data without power
Explanation:
Non-volatile memory is a type of computer memory that can retrieve stored information even after having been power cycled (turned off and back on). ROM is a primary example.
Incorrect! Try again.
18A logic function is implemented using a PAL. This means the function is realized in which standard form?
PALs and their applications
Easy
A.Sum-of-Products (SOP)
B.Product-of-Sums (POS)
C.Canonical Form
D.Binary-Coded Decimal (BCD)
Correct Answer: Sum-of-Products (SOP)
Explanation:
The structure of a PAL, with its AND gates feeding into OR gates, is perfectly suited for implementing logic functions directly in the Sum-of-Products (SOP) form.
Incorrect! Try again.
19CPLD is an acronym for:
Sequential PLDs and their applications
Easy
A.Computerized Programmable Logic Device
B.Complex Programmable Logic Device
C.Combinational Programmable Logic Device
D.Custom Programmable Logic Device
Correct Answer: Complex Programmable Logic Device
Explanation:
CPLD stands for Complex Programmable Logic Device. It is an integrated circuit that is more complex than a PAL but less complex than an FPGA, often containing multiple macrocells with sequential logic capabilities.
Incorrect! Try again.
20Which memory type is programmed at the factory during the manufacturing process and cannot be changed by the user?
Read-only memory
Easy
A.PROM
B.EEPROM
C.EPROM
D.Mask ROM
Correct Answer: Mask ROM
Explanation:
Mask ROM is programmed with the desired data during the semiconductor fabrication process using a specific 'mask'. Once it is made, the data cannot be altered, making it suitable for high-volume, fixed-function products.
Incorrect! Try again.
21To construct a 64K x 16 memory system, how many 16K x 8 RAM chips are required, and how many address lines are needed for the chip select (CS) decoder?
Read/Write memory- SRAM and DRAM
Medium
A.4 chips, 4 address lines
B.8 chips, 2 address lines
C.8 chips, 3 address lines
D.4 chips, 2 address lines
Correct Answer: 8 chips, 2 address lines
Explanation:
To get the required width of 16 bits from 8-bit chips, you need 16/8 = 2 chips in parallel for each bank. To get the required depth of 64K from 16K chips, you need 64K/16K = 4 banks. Total chips = 2 (for width) * 4 (for depth) = 8 chips. To select one of the 4 banks, you need a decoder that can select from 4 unique locations, which requires address lines.
Incorrect! Try again.
22A ROM is used to implement the Boolean function . What will be the data stored at the memory address 110?
Read-only memory
Medium
A.1
B.Undefined
C.0
D.High Impedance
Correct Answer: 1
Explanation:
The memory address 110 corresponds to the input combination A=1, B=1, C=0. This is the decimal value 6. Since the function is defined by the sum of minterms , the output for minterm 6 should be '1'. Therefore, the data bit stored at address 110 will be 1.
Incorrect! Try again.
23Consider a PAL device with 4 inputs and 2 outputs. Each output is generated by a fixed OR gate with 3 AND gate inputs. Which of the following pairs of functions can be implemented on this PAL?
PALs and their applications
Medium
A.Only can be implemented, cannot.
B.Only can be implemented, cannot.
C.Neither nor can be implemented.
D.Both and can be implemented.
Correct Answer: Both and can be implemented.
Explanation:
The PAL's OR gate for each output can sum up to 3 product terms (from the 3 AND gates). The function has exactly 3 product terms. The function has 2 product terms. Since both functions require 3 or fewer product terms, they can both be implemented on this PAL architecture.
Incorrect! Try again.
24To implement the functions and using a PLA, what is the minimum number of unique product terms required in the AND array?
PLAs and their applications
Medium
A.5
B.3
C.4
D.2
Correct Answer: 3
Explanation:
In a PLA, product terms can be shared between different output functions. The required product terms are: (for both and ), (for ), and (for ). Since is shared, the total number of unique product terms needed is 3.
Incorrect! Try again.
25What is the primary architectural reason that FPGAs are generally more suitable for register-intensive applications (like a digital filter pipeline) than CPLDs?
Introduction to field programmable gate arrays
Medium
A.FPGAs have a fine-grained architecture with a vast number of registers distributed throughout the fabric, typically paired with each LUT.
B.FPGAs are non-volatile and retain their configuration on power-off.
C.FPGAs use a programmable AND-OR plane which is more efficient for state machines.
D.CPLDs have a higher input-to-output pin delay, making them unsuitable for high-frequency designs.
Correct Answer: FPGAs have a fine-grained architecture with a vast number of registers distributed throughout the fabric, typically paired with each LUT.
Explanation:
FPGAs use a 'sea-of-gates' (or more accurately, sea-of-LUTs) architecture. Each Configurable Logic Block (CLB) contains one or more Look-Up Tables (LUTs) and flip-flops. This distributed, fine-grained structure provides a very high ratio of registers to logic, making them ideal for pipelined and other register-heavy designs. CPLDs, in contrast, have registers only in the macrocells at the edge of their logic blocks, a much coarser-grained architecture.
Incorrect! Try again.
26A DRAM chip has a refresh period of 64 ms and contains 8192 rows. What is the average time interval between row refresh operations (refresh cycle time)?
Read/Write memory- SRAM and DRAM
Medium
A.7.81 µs
B.8.19 µs
C.64 µs
D.128 ns
Correct Answer: 7.81 µs
Explanation:
The entire memory must be refreshed within the 64 ms period. Since there are 8192 rows, the refresh controller must initiate a refresh operation for each row within this time. The average time between these operations is the total period divided by the number of rows: Time = 64 ms / 8192 = seconds, or 7.81 µs.
Incorrect! Try again.
27What is the key function of an Output Logic Macrocell (OLMC) in a sequential PLD like a GAL22V10?
Sequential PLDs and their applications
Medium
A.To decode the address lines for selecting specific product terms.
B.To provide a configurable path for an output to be either combinational or registered (using a flip-flop).
C.To solely act as a buffer to increase the drive strength of the output pin.
D.To implement the AND-plane logic for all product terms.
Correct Answer: To provide a configurable path for an output to be either combinational or registered (using a flip-flop).
Explanation:
The OLMC is a key feature of sequential and complex PLDs. It sits between the OR-plane and the output pin. Its main purpose is to provide flexibility by allowing the user to select whether the output should be the direct combinational result of the sum-of-products logic or if it should be passed through a flip-flop to create a registered, synchronous output. It often also allows for output polarity control and feedback to the AND-array.
Incorrect! Try again.
28A design engineer needs to choose a memory type for storing firmware in a consumer electronics device. For initial prototyping and debugging, frequent reprogramming is necessary. For the final high-volume production, the lowest cost per unit is the primary concern. Which pair of memory types is most appropriate?
Read-only memory
Medium
A.Prototyping: EEPROM, Production: Mask ROM (MROM)
B.Prototyping: PROM, Production: EEPROM
C.Prototyping: SRAM, Production: DRAM
D.Prototyping: Mask ROM (MROM), Production: EPROM
Correct Answer: Prototyping: EEPROM, Production: Mask ROM (MROM)
Explanation:
For prototyping, an electrically erasable and programmable memory like EEPROM or Flash is ideal because it allows the firmware to be changed easily without special equipment. For high-volume mass production, a Mask ROM (MROM) is the most cost-effective solution because the data is permanently patterned into the silicon during manufacturing, resulting in a very low per-unit cost once the initial setup (mask) cost is paid.
Incorrect! Try again.
29What is the primary architectural difference between a PAL (Programmable Array Logic) and a PLA (Programmable Logic Array)?
PALs and their applications
Medium
A.A PAL uses fuses for programming, while a PLA uses anti-fuses.
B.A PLA has a programmable AND array and a fixed OR array, while a PAL has both a programmable AND array and a programmable OR array.
C.A PAL has a programmable AND array and a fixed OR array, while a PLA has both a programmable AND array and a programmable OR array.
D.A PAL can only implement combinational logic, while a PLA can implement sequential logic.
Correct Answer: A PAL has a programmable AND array and a fixed OR array, while a PLA has both a programmable AND array and a programmable OR array.
Explanation:
This is the fundamental distinction. In a PAL, the user can define the product terms (AND logic), but the way these product terms are summed for each output (OR logic) is fixed. In a PLA, the user can define not only the product terms but also which product terms are summed for each individual output, offering greater flexibility at the cost of more complexity and potentially slower speed.
Incorrect! Try again.
30The primary reason DRAM (Dynamic RAM) can achieve much higher storage densities than SRAM (Static RAM) is that...
Read/Write memory- SRAM and DRAM
Medium
A.DRAM cells do not require power to retain data, reducing the need for power distribution circuitry.
B.SRAM cells are physically larger due to the need for UV-transparent windows for erasing.
C.DRAM uses a more advanced manufacturing process that allows for smaller feature sizes.
D.A DRAM cell consists of a single transistor and a capacitor, while an SRAM cell requires a latch typically made of 6 transistors.
Correct Answer: A DRAM cell consists of a single transistor and a capacitor, while an SRAM cell requires a latch typically made of 6 transistors.
Explanation:
The structural simplicity of the DRAM cell is the key to its high density. The 1-transistor, 1-capacitor (1T1C) design takes up significantly less silicon area than the 6-transistor (6T) flip-flop latch used in a standard SRAM cell. This allows many more DRAM cells to be packed into the same amount of space.
Incorrect! Try again.
31How does a typical FPGA implement a complex 6-input combinational logic function using its fundamental logic elements which are 4-input Look-Up Tables (LUTs)?
Introduction to field programmable gate arrays
Medium
A.By cascading multiple 4-input LUTs, often using multiplexers to combine their results.
B.It is not possible; the function must be simplified to 4 inputs or less.
C.By using the programmable AND-OR planes instead of the LUTs.
D.By reconfiguring a single 4-input LUT to operate as a 6-input LUT at a lower speed.
Correct Answer: By cascading multiple 4-input LUTs, often using multiplexers to combine their results.
Explanation:
A function with more inputs than a single LUT can handle is implemented by breaking it down. For a 6-input function, a common method is to use four 4-input LUTs to compute parts of the function and then two 2-input LUTs (or MUXes) to combine those results, and one final MUX to get the final result. More efficiently, a 6-input function can be implemented with two 4-input LUTs feeding into a 2:1 MUX (if one of the inputs is used as the MUX select line).
Incorrect! Try again.
32A PLA is defined by its number of inputs (I), product terms (P), and outputs (O). If a PLA is used to implement a BCD-to-7-Segment decoder, what are the minimum values for I and O?
PLAs and their applications
Medium
A.I=10, O=7
B.I=7, O=4
C.I=4, O=10
D.I=4, O=7
Correct Answer: I=4, O=7
Explanation:
A BCD (Binary Coded Decimal) input consists of 4 bits to represent decimal digits 0 through 9. A standard 7-segment display has 7 segments (a, b, c, d, e, f, g) that need to be controlled. Therefore, the decoder circuit must have 4 inputs and 7 outputs. The number of product terms (P) would depend on the logic simplification of the 7 output functions.
Incorrect! Try again.
33To implement a 4-bit synchronous counter with a parallel load capability, which of the following devices would be most suitable?
Sequential PLDs and their applications
Medium
A.A 4K x 8 ROM
B.A simple PAL with 4 inputs and 4 outputs
C.A sequential PLD (like a CPLD or GAL)
D.A simple PLA
Correct Answer: A sequential PLD (like a CPLD or GAL)
Explanation:
A synchronous counter is a state machine, which requires memory elements (flip-flops) to store its current state. Sequential PLDs are specifically designed for this purpose, as they integrate programmable logic (AND-OR arrays) with registers (flip-flops) in their macrocells. A simple PAL, PLA, or ROM lacks these integrated registers and cannot directly implement a state machine.
Incorrect! Try again.
34The configuration data that defines the logic functions and interconnections in an SRAM-based FPGA is...
Introduction to field programmable gate arrays
Medium
A.Non-volatile, and is permanently stored in the FPGA using fuse technology.
B.Non-volatile, and stored in an on-chip EEPROM.
C.Volatile, but is retained for several hours by internal capacitors.
D.Volatile, and must be loaded from an external source (like a flash memory) upon power-up.
Correct Answer: Volatile, and must be loaded from an external source (like a flash memory) upon power-up.
Explanation:
SRAM-based FPGAs store their configuration in SRAM (Static RAM) cells. SRAM is volatile memory, meaning its contents are lost when power is removed. Therefore, every time an SRAM-based FPGA is powered on, its configuration bitstream must be reloaded from a non-volatile source, such as an external SPI flash memory chip or a host processor.
Incorrect! Try again.
35An 8K x 8 ROM chip has a chip enable input (CE) and an output enable input (OE). To read data from the ROM, what must be the state of these signals?
Read-only memory
Medium
A.CE must be inactive, and OE must be active.
B.CE must be active, and OE must be inactive.
C.Both CE and OE must be inactive.
D.CE must be active, and OE must be active.
Correct Answer: CE must be active, and OE must be active.
Explanation:
The Chip Enable (CE) signal is used to select the entire chip. If CE is inactive, the chip is typically in a low-power standby mode and will not respond. The Output Enable (OE) signal controls the output buffers. When OE is active (and CE is also active), the data from the selected memory location is driven onto the data bus. Deactivating OE puts the data bus pins in a high-impedance state, allowing multiple devices to share the bus.
Incorrect! Try again.
36Given the Boolean function , how many product terms are required to implement its minimized sum-of-products form using a PAL?
PALs and their applications
Medium
A.3
B.1
C.2
D.4
Correct Answer: 2
Explanation:
First, the function must be minimized using Boolean algebra or a K-map. The function is . The terms and can be combined: . So, the minimized function is . This minimized form has two product terms. Therefore, it would require 2 AND gates in the PAL's AND-plane connected to one OR gate.
Incorrect! Try again.
37An advantage of using a PLA over a PAL for implementing a set of logic functions is that...
PLAs and their applications
Medium
A.PLAs are generally faster than PALs because of their simpler architecture.
B.The PLA's programmable OR array allows for more efficient allocation of product terms among the outputs.
C.PLAs consume significantly less power than PALs for the same logic function.
D.PLAs are field-programmable, whereas PALs are only mask-programmable.
Correct Answer: The PLA's programmable OR array allows for more efficient allocation of product terms among the outputs.
Explanation:
The key advantage of a PLA's architecture is its flexibility. Because both the AND and OR arrays are programmable, a product term generated in the AND array can be routed to any of the OR gates. This allows for efficient sharing and distribution of logic resources, which can be beneficial when some output functions are very complex (requiring many product terms) while others are simple. In a PAL, each output's OR gate is fed by a fixed, dedicated set of AND gates.
Incorrect! Try again.
38In a memory system, SRAM is most commonly used for CPU cache while DRAM is used for main memory. What is the primary trade-off that dictates this choice?
Read/Write memory- SRAM and DRAM
Medium
A.Volatility vs. Non-volatility: SRAM is non-volatile while DRAM is volatile.
B.Power Consumption vs. Capacity: SRAM consumes less power, making it suitable for main memory.
C.Read Speed vs. Write Speed: SRAM has faster reads, while DRAM has faster writes.
D.Speed vs. Cost/Density: SRAM is much faster but more expensive and less dense than DRAM.
Correct Answer: Speed vs. Cost/Density: SRAM is much faster but more expensive and less dense than DRAM.
Explanation:
CPU cache needs to operate at speeds comparable to the CPU itself to be effective. SRAM offers very low latency (fast access times) because of its transistor-latch design, making it ideal for cache. However, this design makes it expensive and less dense. Main memory needs large capacity at a reasonable cost, which is where DRAM excels due to its simple, dense cell structure, even though it is slower and requires refreshing.
Incorrect! Try again.
39The routing resources in an FPGA consist of a programmable interconnection matrix. What is the primary purpose of these resources?
Introduction to field programmable gate arrays
Medium
A.To create flexible signal paths to connect the outputs of some Configurable Logic Blocks (CLBs) to the inputs of others.
B.To store the configuration bitstream for the entire device.
C.To supply power and ground connections to all the logic blocks on the chip.
D.To provide clock signals to the sequential elements within the CLBs.
Correct Answer: To create flexible signal paths to connect the outputs of some Configurable Logic Blocks (CLBs) to the inputs of others.
Explanation:
An FPGA's functionality comes from two key components: the logic elements (CLBs/LUTs) that implement logic functions, and the routing resources that connect them. The programmable interconnect matrix consists of wires and programmable switches that allow the synthesis tool to create custom paths between any two points on the chip, effectively wiring the logic blocks together to build the user's desired circuit.
Incorrect! Try again.
40A state machine with 5 states is to be implemented using a sequential PLD. What is the minimum number of flip-flops (registers) required within the PLD to represent the states?
Sequential PLDs and their applications
Medium
A.3
B.2
C.5
D.8
Correct Answer: 3
Explanation:
The number of states that can be represented by 'n' flip-flops is . To implement a state machine with 'N' states, we need to find the smallest integer 'n' such that . In this case, N=5. For n=2, , which is not enough. For n=3, , which is sufficient to represent 5 states (with 3 states being unused). Therefore, a minimum of 3 flip-flops are required.
Incorrect! Try again.
41A 256Mbit DRAM chip is organized as 16K rows, 2K columns, and a bus width of 8 bits. The memory requires a refresh cycle every 64 ms. If a single row refresh operation (read and write-back) takes 50 ns, what percentage of the total time is spent on refresh operations?
Read/Write memory- SRAM and DRAM
Hard
A.Approximately 0.64%
B.Approximately 1.28%
C.Approximately 0.32%
D.Approximately 2.56%
Correct Answer: Approximately 1.28%
Explanation:
Total number of rows to refresh: The DRAM has 16K rows, which is rows.
Total time for one full refresh: This is the number of rows multiplied by the time for one row refresh: .
Refresh period: The entire refresh must be completed within 64 ms.
Percentage of time spent on refresh (overhead): This is the ratio of the total time taken for refreshing to the total refresh period.
Incorrect! Try again.
42Consider implementing the following three Boolean functions using a single PLA with inputs w, x, y, z:
What is the minimum number of unique product terms required in the AND array of the PLA to implement all three functions simultaneously?
PLAs and their applications
Hard
A.8
B.6
C.10
D.16
Correct Answer: 6
Explanation:
We minimize each function and count the total unique product terms.
: Group {0,1,4,5} gives and group {10,11,14,15} gives . So (2 product terms: ).
: All minterms have . So (1 product term: ).
: Group {0,1,2,3} gives . Group {10,11} gives . Group {12,13} gives . So (3 product terms: ).
None of the product terms are shared between functions. The 6 unique terms are: , , , , , . The PLA's programmable OR array routes the appropriate terms to each output: , , .
Incorrect! Try again.
43A state machine is implemented using a sequential PLD (like a CPLD macrocell) with a registered output. The propagation delay through the combinational logic (AND-OR array) is ns, the setup time for the flip-flop is ns, and the clock-to-output delay of the flip-flop is ns. The external circuit connected to the PLD's output has its own setup time requirement of 4 ns relative to the same system clock. What is the maximum possible clock frequency () at which this entire system can operate reliably?
Sequential PLDs and their applications
Hard
A.76.9 MHz
B.62.5 MHz
C.58.8 MHz
D.100 MHz
Correct Answer: 76.9 MHz
Explanation:
The maximum clock frequency is limited by the longest delay path between any two flip-flops in the system.
Path 1 — Internal state register feedback: The signal travels from the flip-flop output, through the combinational logic (AND-OR array), and back to the flip-flop input.
Path 2 — PLD registered output to external circuit: Since the output is registered (directly from the flip-flop), it becomes valid after . The external circuit must capture it before the next clock edge, requiring its setup time to be met.
The system clock must satisfy all constraints simultaneously. The bottleneck is the slower path:
Incorrect! Try again.
44How would you implement the Boolean function (a 6-input XOR gate) most efficiently using an FPGA architecture composed of 4-input Look-Up Tables (LUTs)?
Introduction to field programmable gate arrays
Hard
A.Four 4-input LUTs in a single level.
B.Two 4-input LUTs and one 2-input AND gate.
C.Three 4-input LUTs arranged in two levels.
D.One 4-input LUT and one 3-input LUT.
Correct Answer: Three 4-input LUTs arranged in two levels.
Explanation:
A single 4-input LUT can implement any Boolean function of up to 4 variables. The 6-input XOR must be decomposed.
Balanced tree decomposition (2 levels, 3 LUTs):
LUT-1: Computes (3-input function, fits one 4-input LUT).
LUT-2: Computes (3-input function, fits one 4-input LUT).
LUT-3: Computes (2-input function, fits one 4-input LUT).
LUT-1 and LUT-2 operate in parallel (level 1), and LUT-3 combines their results (level 2). This balanced tree has only 2 levels of logic delay, providing predictable and symmetric timing.
Note: A cascade approach (LUT-1 computes , LUT-2 computes ) uses only 2 LUTs but creates an asymmetric path. Synthesis tools typically prefer the balanced 3-LUT tree for better timing predictability across the FPGA fabric.
Incorrect! Try again.
45A PAL16L8 device has 10 dedicated inputs, 2 dedicated outputs, and 6 pins that are programmable as I/O. Each output is generated by a 7-input OR gate, which is fed by 7 product terms from the AND array. Consider the function . Which statement is true regarding its implementation on a single output of a PAL16L8?
PALs and their applications
Hard
A.The function can be implemented directly as it has exactly 7 product terms.
B.The function cannot be implemented because it requires 6 inputs but the OR gate is 7-input.
C.The function cannot be implemented directly because after minimization it requires more than 7 product terms.
D.The function cannot be implemented without factoring because it requires 8 product terms after minimization.
Correct Answer: The function can be implemented directly as it has exactly 7 product terms.
Explanation:
The PAL16L8 allows each output OR gate to accept up to 7 product terms. We must check whether the given function fits.
The function has 7 terms: , , , , , , .
We check for redundancies by absorption: term is a subset of (whenever , we also have ). So is redundant and the function actually requires only 6 product terms.
Since both the original 7-term expression and the simplified 6-term expression fit within the PAL16L8's limit of 7 product terms per OR gate, the function can be implemented directly on a single output without any factoring or cascading. The device's 10+ input pins also accommodate the 6 input variables.
Incorrect! Try again.
46A system requires a 4-bit binary to 7-segment display decoder for a common anode display. Invalid BCD codes (1010 through 1111) must result in the display being completely blank. What is the hexadecimal value that must be stored in the ROM at address (binary 1011) to implement this function?
Read-only memory
Hard
A.0xFF
B.0x40
C.0x7F
D.0x00
Correct Answer: 0xFF
Explanation:
Understand the Target: The decoder is for a common anode display. This means a logic '0' turns a segment ON, and a logic '1' turns a segment OFF. The segments are typically labeled a, b, c, d, e, f, g. Let's map the ROM data bits to segments: D7, D6, D5, D4, D3, D2, D1, D0 -> (unused), g, f, e, d, c, b, a.
Analyze the Requirement: For the input address (binary 1011), the BCD code is invalid. The requirement is to make the display blank.
Determine the Output for 'Blank': To make a common anode display blank, all segments must be turned OFF. This requires applying a logic '1' to all segment lines (a through g).
Construct the Data Word: The data word to be stored is gfedcba. Since all segments must be OFF (logic 1), the required pattern is 1111111. If we assume the 8th bit (D7) is unused and pulled high or is a don't care set to 1, the 8-bit word is 11111111 in binary.
Convert to Hexadecimal: The binary value 11111111 is equal to in hexadecimal. Therefore, the value stored at address must be .
Incorrect! Try again.
47An asynchronous SRAM has a read cycle time () of 20 ns, an address access time () of 20 ns, a chip select access time () of 15 ns, and an output enable access time () of 10 ns. The processor driving the SRAM provides the address and asserts Chip Select (CS) simultaneously. After a 5 ns delay, it asserts Output Enable (OE). When is the data from the SRAM guaranteed to be valid?
Read/Write memory- SRAM and DRAM
Hard
A.25 ns after address is applied.
B.10 ns after address is applied.
C.20 ns after address is applied.
D.15 ns after address is applied.
Correct Answer: 20 ns after address is applied.
Explanation:
The data from the SRAM will be valid only after all three timing constraints are met. Let's define T=0 as the moment the address and Chip Select (CS) are asserted.
Address Access Time (): Data is not valid until 20 ns after the address is stable. So, data is valid at .
Chip Select Access Time (): CS is asserted at T=0. Data is not valid until 15 ns after CS is asserted. So, data is valid at .
Output Enable Access Time (): OE is asserted at T=5 ns (5 ns after address/CS). Data is not valid until 10 ns after OE is asserted. So, data is valid at .
For the data to be guaranteed valid, we must wait for the latest of these events. The three events complete at 20 ns, 15 ns, and 15 ns respectively.
The latest time is 20 ns. Therefore, the data is guaranteed to be valid 20 ns after the address is first applied.
Incorrect! Try again.
48In an FPGA, implementing a 32-bit adder using the general-purpose logic fabric (LUTs) is compared to using the dedicated, hard-wired carry chain logic available in most modern FPGAs. What is the primary architectural reason that the dedicated carry chain is significantly faster?
Introduction to field programmable gate arrays
Hard
A.The dedicated carry chain logic is implemented with smaller transistors, reducing parasitic capacitance.
B.The LUT-based implementation requires a clock signal for each bit, while the carry chain does not.
C.The dedicated carry chain uses asynchronous logic for faster propagation.
D.The dedicated carry chain uses specialized, high-speed routing paths between adjacent logic elements that bypass the general-purpose interconnect matrix.
Correct Answer: The dedicated carry chain uses specialized, high-speed routing paths between adjacent logic elements that bypass the general-purpose interconnect matrix.
Explanation:
The general-purpose interconnect matrix in an FPGA is designed for flexibility, allowing connections between any logic elements. This flexibility comes at the cost of speed, as signals must pass through multiple programmable switches (pass transistors, multiplexers), which adds significant RC delay. A 32-bit adder requires a carry signal to ripple from the least significant bit to the most significant bit. If this carry signal were routed through the general interconnect, the delay would accumulate at each of the 32 stages, making the adder very slow.
Dedicated carry chains solve this by providing a direct, optimized, high-speed connection for the carry signal between vertically or horizontally adjacent Logic Elements (LEs) or Configurable Logic Blocks (CLBs). This specialized path has very low delay compared to the general-purpose routing, allowing the carry to propagate very quickly. This is the main reason for the significant performance improvement.
Incorrect! Try again.
49A PLA is used to implement a logic system with 8 inputs and 6 outputs. The implementation requires 45 unique product terms after minimization. A ROM is considered as an alternative. What is the size of the ROM required to implement the same logic, and what is the ratio of utilized crosspoints in the PLA's AND-plane to the total crosspoints in the ROM's decoder?
Correct Answer: ROM Size: 256 x 6 bits. Ratio: (8x2x45) / (2^8 x 8) = 0.3515
Explanation:
ROM Size Calculation: A ROM that implements a function of N inputs and M outputs requires words of M bits each. For 8 inputs and 6 outputs, the ROM size is bits. The ROM's decoder will have 8 inputs and outputs (word lines).
PLA AND-Plane Crosspoints: A PLA AND-plane has crosspoints, where N is the number of inputs and P is the number of product terms. The '2' accounts for both the true and complemented form of each input. Utilized crosspoints are the ones actually used to form the product terms. The question asks for the number of crosspoints in the plane, which is the total size. Number of crosspoints = .
ROM Decoder Crosspoints: The ROM's address decoder is a fixed AND-plane that generates all possible minterms. The number of crosspoints in this decoder is . However, a more standard view of a decoder's complexity is its number of outputs, which is . Let's consider the comparison to be against the number of bits in the decoder input stage, which is often represented as . A more direct comparison is the number of programmable elements. In the PLA, it's the number of fuses/switches. In the ROM, the connections are fixed. Let's interpret 'crosspoints in the ROM's decoder' as the number of transistors in the NOR/NAND decoder array, which is approximately . Size = .
Calculate the Ratio: The question asks for the ratio of PLA AND-plane crosspoints to ROM decoder crosspoints.
PLA AND-plane size = .
Ratio = .
This calculation matches option D exactly. The key is understanding the internal structure of both devices to make a valid comparison.
Incorrect! Try again.
50A Mealy state machine with 5 states, 3 inputs, and 4 outputs is to be implemented using a CPLD. The states are encoded using the minimum number of bits. The CPLD macrocells contain D-flip-flops. What is the minimum size of the combinational logic required, expressed in terms of inputs to the logic block and outputs from the logic block?
Sequential PLDs and their applications
Hard
A.6 inputs, 4 outputs
B.3 inputs, 4 outputs
C.6 inputs, 7 outputs
D.5 inputs, 4 outputs
Correct Answer: 6 inputs, 7 outputs
Explanation:
State Encoding: To represent 5 states, we need a minimum of bits. These 3 bits will be the outputs of 3 D-flip-flops, representing the current state ().
Inputs to Combinational Logic: The combinational logic block must calculate two things: the next state and the outputs. For a Mealy machine, both are a function of the current state and the primary inputs.
Current State bits: 3 (from the flip-flop outputs, fed back)
Primary Input bits: 3
Total inputs to the logic block = .
Outputs from Combinational Logic: The logic block must generate the signals that will be the inputs to the flip-flops (next state) and the primary outputs.
Next State bits (): 3 (these will be connected to the D-inputs of the flip-flops).
Primary Output bits: 4
Total outputs from the logic block = .
Therefore, the combinational logic requires 6 inputs (3 state bits + 3 primary inputs) and produces 7 outputs (3 next-state bits + 4 primary outputs).
Incorrect! Try again.
51You need to implement the function . A PAL device is available where each output OR gate has a maximum of 3 product terms as inputs. How can this function be implemented?
PALs and their applications
Hard
A.It can be implemented directly on one output.
B.It can be implemented by minimizing the function to 3 product terms.
C.It is impossible to implement on this device.
D.It requires cascading two PAL outputs, where one output implements part of the function and is fed back as an input to the logic for the second output.
Correct Answer: It requires cascading two PAL outputs, where one output implements part of the function and is fed back as an input to the logic for the second output.
Explanation:
First, identify the minterms: . On a 4-variable K-map, these four cells form a checkerboard pattern — no two minterms are adjacent, so no pair can be combined into a larger implicant. The minimum SOP therefore requires all 4 product terms, one per minterm.
Since the PAL's OR gate accepts at most 3 product terms, the function cannot fit on a single output. The standard solution is output cascading:
First output: Implement (3 terms — fits the OR gate).
Feedback: Route back into the AND array as a new input variable.
Second output: Implement (2 terms — fits the OR gate).
This uses two PAL macrocells to realize a 4-term function that exceeds the capacity of a single OR gate. The tradeoff is one additional level of propagation delay due to the feedback path.
Incorrect! Try again.
52A 1T1C DRAM cell uses a 25 fF storage capacitor charged to 2.0 V to store a logic '1'. Due to junction leakage in the access transistor, the stored charge slowly leaks away. The sense amplifier can reliably detect the stored '1' as long as the capacitor voltage remains at or above 1.92 V. What is the maximum allowable leakage current if the data must be retained for the full 64 ms refresh period?
Read/Write memory- SRAM and DRAM
Hard
A.Approximately 12.2 nA
B.Approximately 0.54 pA
C.Approximately 31.25 fA
D.Approximately 1.95 pA
Correct Answer: Approximately 31.25 fA
Explanation:
The leakage current must be low enough that the capacitor voltage stays above 1.92 V for the entire 64 ms refresh period.
Maximum allowable voltage drop:
Maximum charge that can be lost:
Maximum leakage current: Since :
This extremely small current (~31 fA) illustrates why DRAM cell transistors must have exceptionally low off-state leakage. In practice, this is achieved through high-threshold-voltage access transistors and careful process engineering.
Incorrect! Try again.
53A microprocessor's boot sequence is stored in a 32K x 8 ROM. The ROM has an access time () of 150 ns and an output enable time () of 70 ns. The microprocessor bus cycle requires the address to be stable for the entire cycle, asserts the output enable signal 50 ns after the start of the cycle, and latches the data at 200 ns. What is the minimum bus cycle time, and what is the unused time margin for the ROM in this system?
Read-only memory
Hard
A.200 ns cycle, 80 ns margin
B.200 ns cycle, 50 ns margin
C.220 ns cycle, 20 ns margin
D.150 ns cycle, 0 ns margin
Correct Answer: 200 ns cycle, 50 ns margin
Explanation:
Let T=0 be the start of the bus cycle when the address becomes stable.
ROM Data Availability: We need to find when the ROM data is guaranteed to be valid. This is the later of two events:
From Address: Data is valid at ns.
From Output Enable: The OE signal is asserted at ns. Data is valid after that. So, data is valid at ns.
The data is guaranteed to be valid at the latest of these two times, which is 150 ns.
System Timing Requirement: The microprocessor latches the data at ns. This means the data must be valid before this time. The minimum bus cycle time given this latch point is 200 ns.
Timing Margin: The ROM provides stable data at 150 ns. The processor needs it at 200 ns. The margin is the difference between when the data is needed and when it becomes available.
Margin = (Time data is latched) - (Time data is valid)
Margin = .
The minimum bus cycle time is determined by the processor's requirement (200 ns), and the ROM meets this requirement with a 50 ns margin.
Incorrect! Try again.
54A hypothetical FPGA's logic element consists of one 4-input LUT and one D-flip-flop. To implement a 4-bit synchronous binary counter with a synchronous reset, what is the minimum number of logic elements required, and why?
Introduction to field programmable gate arrays
Hard
A.5 LEs, four for the counter bits and one for the terminal count logic.
B.4 LEs, one for each bit's flip-flop and next-state logic.
C.6 LEs, four for the counter bits and two to synthesize the wide fan-in logic for the MSB.
D.8 LEs, as each bit's next-state logic requires a 5-input function (4 state bits + reset) which needs two LUTs.
Correct Answer: 4 LEs, one for each bit's flip-flop and next-state logic.
Explanation:
Let the 4 bits of the counter be . The next state () for each bit is a function of the current state. The synchronous reset (RST) also affects the next state.
. This is a 2-input function (RST, ).
. This is a 3-input function (RST, ).
. This is a 4-input function (RST, ).
. This is a 5-input function (RST, ).
At first glance, the logic for is a 5-input function, which cannot fit into a single 4-input LUT. This would suggest that the logic for the MSB needs to be decomposed, requiring an extra LUT and therefore more than 4 LEs.
However, modern FPGAs are highly optimized for counters. The LUT can be configured to include the flip-flop's current state () as an implicit input. More importantly, most FPGA flip-flops have dedicated synchronous clear/preset inputs that are handled by dedicated signals, not by general LUT logic. When the synthesis tool sees if (RST) Q <= 0;, it will map the RST signal to the flip-flop's synchronous clear port, not consume a LUT input.
Therefore, the next-state logic becomes:
. (1 input, )
. (2 inputs, )
. (3 inputs, )
. (4 inputs, )
Each of these logic functions has 4 or fewer inputs and can be implemented in a single 4-input LUT. Since each bit also requires one flip-flop, each bit of the counter maps perfectly to one Logic Element (1 LUT + 1 FF). Therefore, a total of 4 LEs are required.
Incorrect! Try again.
55For a 64M x 16 DRAM, the memory array is organized as a square. To access a memory location at the byte address 0x01A3_4B68, which bits of the address are used for the Row Address and which for the Column Address, assuming RAS/CAS splitting is done on the lower address bits?
Read/Write memory- SRAM and DRAM
Hard
A.Row: A12-A0, Column: A25-A13
B.Row: A25-A13, Column: A12-A0
C.Row: A25-A13, Column: A12-A1
D.Row: A26-A14, Column: A13-A1
Correct Answer: Row: A26-A14, Column: A13-A1
Explanation:
Word count and address width: The DRAM stores 64M = words of 16 bits each. Total capacity = bytes = bytes = 128 MB.
Byte addressing: The system uses a byte address bus. With 128 MB, byte addresses range over 27 bits: A26 down to A0. Since the DRAM is 16-bit (2-byte) wide, the least significant address bit A0 selects the byte within the 16-bit word and is not sent to the DRAM chip. The DRAM sees word address bits A26 down to A1 — a total of 26 bits.
Square array: The word locations are organized as a square: Rows = Columns = . This requires 13 bits for the row address and 13 bits for the column address.
RAS/CAS mapping: Using the standard convention where higher-order bits select the row and lower-order bits select the column:
Row Address (13 bits): A26 ... A14
Column Address (13 bits): A13 ... A1
Total: 13 + 13 = 26 bits (A26 to A1).
The byte address 0x01A34B68 is provided for context but its specific value is not needed — the question is about the address bit mapping.
Incorrect! Try again.
56Two combinational circuits are to be implemented using a single PLA: a full adder (with inputs A, B, and outputs S, ) and a 4-to-2 priority encoder (with inputs and outputs ). What is the minimum total number of unique product terms required in the PLA's AND array?
PLAs and their applications
Hard
A.20
B.15
C.12
D.10
Correct Answer: 10
Explanation:
We minimize each output function and count the total unique product terms across both circuits. Since the circuits have disjoint inputs, no product terms can be shared between them.
Full Adder (inputs: A, B, ):
— 4 product terms
— 3 product terms
No terms are shared between S and . Total: 7 unique terms.
The term is shared between both outputs. Unique terms: , , . Total: 3 unique terms.
Combined total: unique product terms. The PLA's programmable OR array can route the appropriate product terms to each of the 4 outputs ().
Incorrect! Try again.
57A complex PLD (CPLD) is structured with multiple Logic Array Blocks (LABs) interconnected by a Programmable Interconnect Array (PIA). A design requires 150 product terms in total, but the single most complex logic function requires 25 product terms. The CPLD's LABs can implement up to 16 product terms per macrocell. How are these requirements met by the CPLD architecture?
Sequential PLDs and their applications
Hard
A.The PIA is used to route and combine signals from multiple LABs to a single 'expander' LAB to synthesize the 25-product-term function.
B.The design is split across 10 LABs, each handling 15 product terms.
C.The design cannot be implemented as a single function exceeds the 16 product term limit of a LAB.
D.A single LAB is used, and a micro-sequencer is implemented to evaluate the 25 product terms over two clock cycles.
Correct Answer: The PIA is used to route and combine signals from multiple LABs to a single 'expander' LAB to synthesize the 25-product-term function.
Explanation:
CPLD architecture is designed to handle logic functions that are wider (require more product terms) than a single macrocell or LAB can provide. This is accomplished through 'product term expansion' or 'logic sharing'.
When a function, like the one requiring 25 product terms, exceeds the capacity of a single macrocell (16 terms), the CPLD's fitter/compiler will split the logic. It will implement the first 16 product terms in one macrocell/LAB. The remaining 9 product terms are implemented in other nearby macrocells. The outputs of these product terms are not used to drive a pin but are routed via the Programmable Interconnect Array (PIA) to the first macrocell. These are called 'expander' product terms. The first macrocell's OR gate is expanded to include these additional terms from its neighbors, allowing it to synthesize the complete 25-term function. This is a key architectural feature of CPLDs that allows them to efficiently implement wide SOP expressions.
Incorrect! Try again.
58To implement a full 4x4 bit unsigned multiplier using a single ROM, what is the required size of the ROM in bits?
Read-only memory
Hard
A.256 x 8 bits = 2048 bits
B.64 x 8 bits = 512 bits
C.128 x 7 bits = 896 bits
D.2048 x 1 bit = 2048 bits
Correct Answer: 256 x 8 bits = 2048 bits
Explanation:
A ROM can be used as a lookup table to implement any combinational logic function.
Determine the number of inputs: A 4x4 multiplier takes two 4-bit numbers as input. Let the inputs be A (4 bits) and B (4 bits). The total number of input lines to the ROM is inputs.
Determine the number of address lines: The number of address lines for the ROM is equal to the total number of inputs. So, there are 8 address lines.
Determine the number of memory locations (words): The number of locations in the ROM is locations. Each location will store the pre-calculated result of a multiplication.
Determine the number of outputs (word size): The result of multiplying two 4-bit numbers can be up to 8 bits long. For example, the maximum multiplication is (binary 1111 x 1111), which equals 225 (binary 11100001), requiring 8 bits for the output.
Calculate the total size: The total size of the ROM is (number of locations) x (word size) = bits = 2048 bits.
Incorrect! Try again.
59A logic designer implements two functions, F1 and F2, on a PAL with programmable output polarity. F1 requires 6 product terms. The complement, F1', requires 3 product terms. F2 requires 4 product terms, and its complement F2' requires 5 product terms. The PAL's OR gates support a maximum of 4 product terms each. Which implementation strategy is valid?
PALs and their applications
Hard
A.Implement F1' and F2', and invert both outputs.
B.Implement F1 and F2', and invert the output for F2.
C.Implement F1 and F2 directly.
D.Implement F1' and F2, and invert the output for F1.
Correct Answer: Implement F1' and F2, and invert the output for F1.
Explanation:
The PAL's OR gate supports at most 4 product terms. We must find a form (true or complement) of each function that fits.
For F1: requires 6 terms (exceeds limit). requires 3 terms (fits). Strategy: implement and use the programmable output polarity to invert it, yielding .
For F2: requires 4 terms (fits exactly). requires 5 terms (exceeds limit). Strategy: implement directly without inversion.
Analysis of each option:
Option A: needs 6 terms — exceeds limit. Invalid.
Option B: (3 terms, fits) + (4 terms, fits). Both fit. Valid.
Option C: (6 terms, exceeds) — Invalid.
Option D: (5 terms, exceeds) — Invalid.
This demonstrates programmable output polarity's value: by implementing a function's complement when it has fewer terms, a PAL can handle functions that would otherwise exceed its capacity.
Incorrect! Try again.
60A processor has a 32-bit address bus and requires 1 GB of main memory. The memory is to be constructed using 256M x 8-bit DRAM chips. How many DRAM chips are required, and how many address lines are decoded by the external address decoder (not the internal RAS/CAS decoders)?
Read/Write memory- SRAM and DRAM
Hard
A.2 chips, 1 address line
B.4 chips, 4 address lines
C.4 chips, 2 address lines
D.8 chips, 3 address lines
Correct Answer: 4 chips, 2 address lines
Explanation:
Memory Organization:
The processor has a 32-bit data bus (implied, as it's a 32-bit address bus system, a standard assumption). We need to build a memory that is 32 bits (4 bytes) wide.
The DRAM chips are 8 bits (1 byte) wide.
To create a 32-bit wide memory bank, we need chips placed in parallel. All 4 chips will be active at the same time to provide the full 32-bit word.
Memory Capacity and Number of Banks:
Total required memory: 1 GB = bytes.
Capacity of one chip: 256M x 8-bit = 256 MB = bytes.
The bank of 4 chips created in step 1 has a total capacity of locations x 32 bits/location = x 4 bytes = bytes = 1 GB.
Since one bank of 4 chips provides the full 1 GB required, only these 4 chips are needed in total. No additional banks are necessary.
Address Decoding:
Each DRAM chip has 256M () locations. To address these locations, it needs 28 address lines ( to ). These lines are handled internally by the DRAM's RAS/CAS logic.
The processor has a 32-bit address bus. For a byte-addressable memory of 1GB ( bytes), the processor will use address lines down to .
The lowest two address bits () are typically used for byte selection within the 32-bit word and are not sent to the DRAMs.
Since we only have one bank of chips, we need a way to enable this bank. The external address decoder's job is to select which bank of chips to enable using the high-order address bits that are not used by the chips themselves. The processor address bus goes up to . The memory space is 1GB = bytes. So processor addresses are used for this memory space. The higher bits are used to select the 1GB memory block itself. So the external decoder will decode and to generate the master chip select signal for this entire memory module. Therefore, 2 address lines are used by the external decoder to map the 1GB block into the processor's 4GB address space.