Recall & Review
beginner
What is a register in digital design?
A register is a group of flip-flops used to store multiple bits of data simultaneously. It holds binary information and can be used to save state or data temporarily.
Click to reveal answer
beginner
How does a multi-bit flip-flop register differ from a single flip-flop?
A multi-bit flip-flop register stores multiple bits at once, usually as a vector, while a single flip-flop stores only one bit. Registers allow parallel storage of data.
Click to reveal answer
beginner
Explain the role of the clock signal in a register.
The clock signal controls when the register updates its stored data. On a clock edge (usually rising), the register captures the input data and holds it until the next clock event.
Click to reveal answer
intermediate
What is the purpose of a reset signal in a multi-bit register?
A reset signal sets the register to a known state (usually all zeros) asynchronously or synchronously, clearing stored data to avoid unpredictable behavior.
Click to reveal answer
intermediate
Write a simple Verilog code snippet for an 8-bit register with synchronous reset.
module register_8bit(input clk, input reset, input [7:0] d, output reg [7:0] q);
always @(posedge clk) begin
if (reset) q <= 8'b0;
else q <= d;
end
endmodule
Click to reveal answer
What does a multi-bit register store?
✗ Incorrect
A multi-bit register stores multiple bits of data at the same time using multiple flip-flops.
When does a register update its stored value?
✗ Incorrect
Registers update their stored data on a clock edge, usually the rising edge.
What is the effect of a synchronous reset in a register?
✗ Incorrect
A synchronous reset clears the register only on the clock edge when the reset signal is active.
In Verilog, which keyword is used to declare a register that holds data?
✗ Incorrect
The 'reg' keyword declares a variable that can hold data in Verilog.
What happens if you do not use a clock in a register design?
✗ Incorrect
Without a clock, the register cannot synchronize data storage, so it won't work reliably.
Describe how a multi-bit register works and why the clock signal is important.
Think about how data is stored and when it changes.
You got /4 concepts.
Write a simple Verilog module for a 4-bit register with synchronous reset and explain each part.
Focus on the structure and how reset and clock control data.
You got /6 concepts.