FreeExam

Hardware verification engineer: Testbenches and Stimulus Design

Original interview cases on driver and monitor behavior, reference-model independence, transaction ownership, legal stimulus, temporal checking, configuration, and reliable test completion.

Original workplace scenarios, independent of any employer or live hiring process. Apply current requirements and authorized role boundaries in practice.

  1. 1.A packet monitor publishes a handle to one mutable transaction object, then overwrites that object for the next packet. Subscribers retain the handle. What should the publisher's ownership policy prevent?

    Show answer and explanation
    1. Only repeated packet values
    2. A guarantee a handle assignment copies every object field
    3. Later mutation of an already published observation
    4. Only two subscribers reading the same immutable data

    Answer: Later mutation of an already published observation

    Publishing a mutable shared object can change past observations when the producer reuses it. Use immutable ownership or an appropriate independent copy for retained transactions.

  2. 2.A transaction contains a dynamic array of bytes. Its copy method copies only the array handle in a custom reference-type wrapper. What test exposes aliasing?

    Show answer and explanation
    1. Check only that both payload lengths match.
    2. Modify the original payload and check that the saved copy stays unchanged.
    3. Assume copying a parent object recursively clones every child.
    4. Compare the two handles immediately and stop.

    Answer: Modify the original payload and check that the saved copy stays unchanged.

    A copy intended as an independent snapshot must not retain unintended mutable aliases. Mutation after copying tests that property directly.

  3. 3.Two monitor subscribers receive the same transaction object. One normalizes its payload in place before the other scores it. What design issue must be fixed?

    Show answer and explanation
    1. A guarantee subscriber order cannot affect shared data
    2. Subscriber interference through shared mutation
    3. Only the monitor's sample frequency
    4. Only the number of packet fields

    Answer: Subscriber interference through shared mutation

    Observers should not alter another observer's input unexpectedly. Define ownership and provide independent or immutable data where analysis requires stable observations.

  4. 4.A driver records a request as complete when it places valid high. The interface can hold ready low for several cycles. What should its completion event reflect under an accepted-transfer contract?

    Show answer and explanation
    1. Only the first cycle of valid
    2. A guarantee presenting a request means it was consumed
    3. The actual acceptance handshake
    4. Only the sequence item's creation

    Answer: The actual acceptance handshake

    Driver completion semantics must distinguish offering work from its accepted transfer. Otherwise sequences and end-of-test logic may advance before the interface accepts the request.

  5. 5.A monitor reads intended values from the driver's private transaction rather than observing the DUT pins. Which injected bug would most directly challenge this monitor?

    Show answer and explanation
    1. A guarantee intended stimulus equals observed interface traffic
    2. Only a change to a comment in the test
    3. A driver-to-pin payload corruption
    4. Only a different scoreboard print format

    Answer: A driver-to-pin payload corruption

    A monitor should reflect actual interface behavior. If it only repeats driver intent, it can miss drive bugs or differences between the intended and accepted traffic.

  6. 6.At four edges, sampled (valid,ready) is (1,0),(1,1),(1,1),(0,1). A transfer occurs at each edge with both high. How many transfers should the monitor report?

    Show answer and explanation
    1. 1
    2. 3
    3. 2
    4. 4

    Answer: 2

    The second and third edges each accept a transfer. Continuous valid does not merge separate accepted beats under this explicit protocol.

  7. 7.A source presents value X while stalled, then X is accepted. At the next edge Y is accepted without valid falling. What should a transaction monitor emit?

    Show answer and explanation
    1. Only Y because it is newer
    2. One transaction ending when valid falls
    3. No transactions until an idle cycle occurs
    4. Two transactions, X then Y

    Answer: Two transactions, X then Y

    Acceptance at each qualifying edge defines transactions. A monitor waiting for valid to deassert would lose legal back-to-back transfers.

  8. 8.A driver changes its payload midway through an unaccepted request to increase stimulus variation. The contract requires stable payload until acceptance. How should this be classified?

    Show answer and explanation
    1. Only a coverage event with no checking relevance
    2. A guarantee the DUT must consume both values
    3. A legal new transfer without a handshake
    4. Illegal source behavior for that protocol

    Answer: Illegal source behavior for that protocol

    Variation must respect the modeled source contract unless deliberately testing a defined violation. Mark negative stimulus explicitly and verify the intended error handling.

  9. 9.A sink's ready generator always deasserts ready whenever valid is high. A test then waits indefinitely for acceptance. What testbench behavior is implicated?

    Show answer and explanation
    1. Only a scoreboard data mismatch
    2. A guarantee no environment can prevent handshakes
    3. A stimulus-created lack of progress
    4. A proof the DUT drops accepted requests

    Answer: A stimulus-created lack of progress

    The environment can prevent every transfer with this policy. Diagnose the handshake trace and align progress assumptions with the intended test rather than automatically blaming the DUT.

  10. 10.A test requires at least one accepted transfer at maximum burst length. The generator produces many maximum-length items, but all are canceled before acceptance. What coverage should decide whether the requirement was exercised?

    Show answer and explanation
    1. Only attempted pin values
    2. A guarantee generation coverage equals accepted-interface coverage
    3. Observed accepted traffic
    4. Only generated item fields

    Answer: Observed accepted traffic

    Generation, drive, acceptance, and completion are distinct events. Sample coverage at the point relevant to the requirement.

  11. 11.A scoreboard predicts a memory read using the memory's value when the response arrives. The contract captures the value at request acceptance. What should the predictor retain?

    Show answer and explanation
    1. Only the latest memory contents
    2. A guarantee delayed reads always observe the newest write
    3. The expected value at the capture event
    4. Only the response arrival time

    Answer: The expected value at the capture event

    The reference must implement the specified temporal semantics. Save the expected read value at acceptance when later writes must not alter that response.

  12. 12.A memory starts with address 5 equal to 7. A read captures that value at edge 2. A write changes it to 9 at edge 3. The read responds at edge 4. What data is expected under capture-at-acceptance semantics?

    Show answer and explanation
    1. 5
    2. 9
    3. 7
    4. 4

    Answer: 7

    The read's specified capture occurred before the write. Its response should contain 7 even though the current memory contents are 9 when the response arrives.

  13. 13.A reference model updates a register before computing a same-edge read, but the contract says the read sees the old value. What should the model explicitly separate?

    Show answer and explanation
    1. A guarantee procedural statement order always matches hardware semantics
    2. Only register names and display labels
    3. Only the total number of simulation cycles
    4. Pre-edge observation and post-edge state

    Answer: Pre-edge observation and post-edge state

    A cycle model must encode the contract's event ordering. Compute observations and updates from the appropriate old or new state rather than relying on an accidental code order.

  14. 14.A scoreboard receives an actual response before the expected-item callback at the same simulated time, though both refer to a legal zero-latency result. What should its matching logic support?

    Show answer and explanation
    1. An immediate mismatch on every early actual callback
    2. A guarantee callback scheduling defines the DUT's protocol order
    3. Arrival-order-independent matching for the allowed timing
    4. Only comparisons after a fixed arbitrary sleep

    Answer: Arrival-order-independent matching for the allowed timing

    Analysis callbacks can arrive in a different order from conceptual model events. Buffer and match according to the contract while still detecting true unsolicited or missing responses.

  15. 15.A block permits out-of-order responses with unique live IDs. A scoreboard compares only FIFO arrival order. What legal scenario will expose its false mismatch?

    Show answer and explanation
    1. Responses for two accepted IDs return in reverse order.
    2. The DUT remains idle throughout the test.
    3. Only the driver's log messages are reordered.
    4. Every response returns in request order.

    Answer: Responses for two accepted IDs return in reverse order.

    If responses are legally out of order, expectations must be matched by the specified identity or permitted relation. A strict FIFO model imposes an unstated order.

  16. 16.Two initiators may use the same numeric transaction ID concurrently, and responses also include source identity. What key should the scoreboard use?

    Show answer and explanation
    1. Source identity plus transaction ID
    2. A guarantee numeric IDs are globally unique
    3. Only response arrival cycle
    4. Only transaction ID

    Answer: Source identity plus transaction ID

    The matching key must include the namespace defined by the interface. Omitting source identity can collide otherwise legal outstanding operations.

  17. 17.A response is duplicated after its matching expectation was consumed. What must the scoreboard detect in addition to data equality?

    Show answer and explanation
    1. An unexpected extra completion
    2. A guarantee correct repeated data is always legal
    3. Only whether the repeated data matches a past value
    4. Only the total simulation time

    Answer: An unexpected extra completion

    Checking values alone can miss duplication. Track the allowed outstanding and completed identities so each completion has a legitimate corresponding obligation.

  18. 18.A scoreboard deletes an expectation whenever any response arrives, even if its ID is unknown. What bug can this hide?

    Show answer and explanation
    1. A missing response for a legitimate request
    2. Only the absence of unrelated traffic
    3. A guarantee every response completes the oldest obligation
    4. Only a different log ordering

    Answer: A missing response for a legitimate request

    Consume an expectation only when the response legally matches it. Otherwise an unsolicited response can erase an outstanding obligation and conceal loss.

  19. 19.A transaction ID is 3 bits wide. The testbench's unbounded sequence number is 10. What numeric ID is transmitted under explicit modulo-8 encoding?

    Show answer and explanation
    1. 8
    2. 2
    3. 10
    4. 3

    Answer: 2

    Modulo-8 encoding maps 10 to 10 mod 8=2. The checker must still enforce any rule about live-ID reuse or generation context.

  20. 20.A response payload is allowed to contain unspecified padding bits. What comparison should the checker apply?

    Show answer and explanation
    1. Compare required fields and handle padding by the contract.
    2. Require every unspecified bit to match an arbitrary model value.
    3. Ignore the entire payload because some bits are unspecified.
    4. Assume unspecified bits are always zero.

    Answer: Compare required fields and handle padding by the contract.

    A reference should check defined behavior without inventing requirements. Mask only genuinely unspecified fields and retain all required data and protocol checks.

  21. 21.A checker uses the DUT's computed checksum as the expected checksum. What independence problem exists?

    Show answer and explanation
    1. A guarantee comparing a signal with itself detects arithmetic faults.
    2. The scoreboard has too many independent calculations.
    3. Only the monitor's sample timestamp is uncertain.
    4. The supposed oracle repeats the value under test.

    Answer: The supposed oracle repeats the value under test.

    An oracle should derive expected behavior independently from appropriate observed inputs and the specification. Reusing the DUT result can make the comparison tautological.

  22. 22.An optimized reference model and RTL share the same generated lookup table. What validation would help detect a shared table-generation error?

    Show answer and explanation
    1. A guarantee shared artifacts cannot create common-mode bugs
    2. Only generating more tests with the same table
    3. Only comparing their identical outputs
    4. An independent table or mathematical cross-check

    Answer: An independent table or mathematical cross-check

    Shared dependencies can produce matching but wrong results. Validate the common artifact against independently derived evidence where feasible.

  23. 23.A packet model rejects an input because it dislikes an optional field the specification permits. What should be fixed?

    Show answer and explanation
    1. The DUT so it rejects all optional fields
    2. The reference model's accepted-input contract
    3. A guarantee reference models define legality independently of the spec
    4. Only the packet's log formatting

    Answer: The reference model's accepted-input contract

    An overrestrictive oracle creates false failures. Align legal inputs and allowed outputs with the actual interface requirements.

  24. 24.A model returns one exact arbitration winner when the contract permits any ready requester. What expected result representation is appropriate?

    Show answer and explanation
    1. A guarantee nondeterministic contracts cannot be checked
    2. Only the lowest ID in every case
    3. Only the model author's preferred requester
    4. The allowed result set or required predicates

    Answer: The allowed result set or required predicates

    Checking can validate membership in the permitted behavior rather than force a single answer. Also retain required exclusivity and progress checks.

  25. 25.A random generator chooses uniformly from integers 0 through 7. What is the probability it chooses either boundary 0 or 7 on one draw?

    Show answer and explanation
    1. 1/4
    2. 1/8
    3. 3/4
    4. 1/2

    Answer: 1/4

    Two of eight equally likely values are boundaries, giving 2/8=1/4. Wider ranges may make unconstrained boundary sampling much rarer.

  26. 26.A field must be even and lie in the inclusive range 3 through 9. What is its legal value set?

    Show answer and explanation
    1. {3,5,7,9}
    2. {2,4,6,8,10}
    3. {4,6,8}
    4. {3,4,5,6,7,8,9}

    Answer: {4,6,8}

    Intersect the range constraint with even parity. The legal values are 4, 6, and 8; each generated result should satisfy both requirements.

  27. 27.A generator constrains length to at least 8 and at most 4. What should randomization failure trigger?

    Show answer and explanation
    1. A guarantee the DUT has a functional bug
    2. Silent reuse of the previous successful item
    3. An assumption that the generated fields are now valid
    4. A visible testbench configuration failure

    Answer: A visible testbench configuration failure

    The constraints are inconsistent. Treat solve failure explicitly so stale or invalid stimulus does not silently masquerade as a successful constrained draw.

  28. 28.A test randomizes an item, ignores the returned failure status, and drives fields left from its previous transaction. What must be added?

    Show answer and explanation
    1. Only more transactions per test
    2. Explicit randomization-result handling
    3. A guarantee failed randomization zeroes every field
    4. Only a new random seed

    Answer: Explicit randomization-result handling

    A failed solve does not establish valid new data. Check the result and follow a defined failure policy instead of transmitting stale state.

  29. 29.A payload length can be 0, 1, 2, or 3, and a mode can be A or B. Every pair is legal. How many length-mode combinations exist?

    Show answer and explanation
    1. 12
    2. 4
    3. 6
    4. 8

    Answer: 8

    The Cartesian product contains 4×2=8 combinations. Coverage should distinguish exercising a combination from merely making it legal in the generator.

  30. 30.A generator gives invalid packets a 10% target probability. A short run happens to produce none. What should the test distinguish?

    Show answer and explanation
    1. A proof the constraints prohibit invalid packets
    2. A guarantee every ten draws include exactly one invalid packet
    3. A stochastic target from a guaranteed occurrence
    4. Only a failure in the packet parser

    Answer: A stochastic target from a guaranteed occurrence

    A random distribution does not generally ensure finite-run counts. Use explicit scenario control when the test requires a particular event to occur.

  31. 31.A directed test needs a full queue before a special operation, but uses a fixed delay rather than checking occupancy. What is a stronger precondition control?

    Show answer and explanation
    1. Only label the test 'full queue.'
    2. Increase the delay until one run passes.
    3. Drive and observe the required state before the operation.
    4. Assume elapsed time uniquely determines occupancy.

    Answer: Drive and observe the required state before the operation.

    A scenario requires its actual precondition. Establish it through legal actions and observed state or an appropriate independent model, with timeout handling.

  32. 32.A sequence intentionally injects a malformed packet. The normal protocol checker reports an error, and the test globally disables all checking. What should the negative-test policy do?

    Show answer and explanation
    1. Delete all protocol assertions permanently.
    2. Expect the specific violation while retaining unrelated checks.
    3. Assume malformed inputs make all outputs irrelevant.
    4. Suppress every failure during the whole regression.

    Answer: Expect the specific violation while retaining unrelated checks.

    A negative test should identify intended violations and required handling. Broad suppression can hide unintended corruption, deadlock, or other failures.

  33. 33.Two concurrent sequences target the same control register, and their operations interleave unpredictably. What should a test requiring one fixed scenario establish?

    Show answer and explanation
    1. The required coordination and ownership
    2. A guarantee concurrent transactions execute in source-file order
    3. Only distinct sequence names
    4. Only a common random seed

    Answer: The required coordination and ownership

    Coordinate dependencies and access where the scenario demands ordering. Otherwise the generated interleaving may be legal but different from the intended stimulus.

  34. 34.A read-modify-write sequence must be indivisible relative to another testbench master for its intended scenario. What is needed in stimulus scheduling?

    Show answer and explanation
    1. Appropriate exclusive access for that sequence
    2. Only a shorter delay between its operations
    3. Only logging both operations together
    4. A guarantee adjacent source statements cannot be interleaved

    Answer: Appropriate exclusive access for that sequence

    Use the relevant coordination or arbitration mechanism to enforce the intended atomic stimulus. Also distinguish that testbench requirement from any atomicity the DUT itself guarantees.

  35. 35.A testbench master waits for an interrupt before releasing a resource, while the interrupt handler needs that resource to finish. What should scenario design examine?

    Show answer and explanation
    1. Only whether both processes have names
    2. Only the DUT's arithmetic outputs
    3. A guarantee independent testbench threads cannot deadlock
    4. A testbench-created dependency cycle

    Answer: A testbench-created dependency cycle

    The verification environment can create its own deadlocks. Trace dependencies across sequences, handlers, locks, and completion events before attributing the stall to hardware.

  36. 36.A sequence sends a request and waits for a response without a timeout. The DUT drops that request. What testbench mechanism turns the hang into reviewable failure evidence?

    Show answer and explanation
    1. Only extending the simulation forever
    2. A bounded watchdog with outstanding-request context
    3. Only printing a message before sending
    4. A guarantee response waits always terminate

    Answer: A bounded watchdog with outstanding-request context

    A watchdog should report the relevant pending obligations and state. Choose bounds consistent with the contract and environment assumptions rather than an unexplained arbitrary limit.

  37. 37.A variable-latency block allows responses from 2 through 5 edges after acceptance, inclusive. A request is accepted at edge 10. Which response edge is illegal on latency grounds?

    Show answer and explanation
    1. 14
    2. 15
    3. 12
    4. 16

    Answer: 16

    The legal edges are 12 through 15. Edge 16 is six edges after acceptance and exceeds the stated maximum.

  38. 38.A request accepted at edge 10 has a response deadline at edge 15, inclusive. A watchdog checks for absence before processing edge-15 observations. What bug may it create?

    Show answer and explanation
    1. A false timeout at the legal boundary
    2. Only a later log timestamp
    3. A guarantee the DUT response is early
    4. Only a duplicate request in the driver

    Answer: A false timeout at the legal boundary

    The checker must honor inclusive timing and its own observation order. Process or account for the boundary event before declaring the obligation overdue.

  39. 39.A testbench ends when all stimulus sequences return, but the scoreboard still has two accepted operations outstanding. What should hold the test open?

    Show answer and explanation
    1. Pending verification obligations
    2. Only the last sequence's return status
    3. Only a fixed short drain delay
    4. A guarantee generation completion implies response completion

    Answer: Pending verification obligations

    End-of-test requires the intended stimulus and checking work to finish, subject to a bounded failure policy. Track outstanding responses and queued analysis work explicitly.

  40. 40.A scoreboard queue is empty because its monitor was never connected. What additional condition prevents this from being mistaken for successful completion?

    Show answer and explanation
    1. Evidence that the required traffic was actually observed and checked
    2. A guarantee disconnected checkers always produce errors
    3. Only the empty-queue predicate
    4. Only a zero mismatch counter

    Answer: Evidence that the required traffic was actually observed and checked

    Absence of expectations can mean no checking occurred. Verify connectivity, observed counts, scenario preconditions, and checker activity alongside completion and mismatch status.

  41. 41.A test uses a fixed 100-cycle drain time, but legal maximum latency depends on a configuration parameter. What should determine the drain or completion rule?

    Show answer and explanation
    1. Only the waveform file size
    2. The configured obligations and their bounds
    3. A guarantee one delay is valid for every supported configuration
    4. Only the previous configuration's passing delay

    Answer: The configured obligations and their bounds

    Use completion conditions and bounded waits derived from the actual contract. A magic delay can terminate too soon or mask nonprogress.

  42. 42.A passive verification agent is instantiated on a bus already driven by another master. What should remain active in the passive agent?

    Show answer and explanation
    1. Observation and checking
    2. Only a driver with random values
    3. An additional independent signal driver
    4. A guarantee passive means all analysis must be disabled

    Answer: Observation and checking

    Passive operation observes existing traffic without taking ownership of drive signals. Monitoring and analysis should remain useful in integrated environments.

  43. 43.Two active agents accidentally drive the same interface signals. What configuration check should detect this?

    Show answer and explanation
    1. A guarantee separate class instances cannot contend on pins
    2. Only distinct component instance names
    3. Exclusive ownership of driven signals
    4. Only the total number of monitors

    Answer: Exclusive ownership of driven signals

    Drive ownership is a structural requirement. Detect incompatible active configurations early rather than interpreting resulting contention as ordinary DUT behavior.

  44. 44.A reusable agent obtains the wrong virtual interface and monitors an idle duplicate bus. What evidence helps expose the misbinding?

    Show answer and explanation
    1. Only whether the agent's class type is correct
    2. Only whether the interface handle is non-null
    3. A guarantee a valid handle always points to the intended instance
    4. Instance identity and known-activity connectivity checks

    Answer: Instance identity and known-activity connectivity checks

    A non-null connection can still be wrong. Verify the bound instance and demonstrate expected activity reaches the intended monitor and checker.

  45. 45.A configuration wildcard unintentionally applies one agent's width to every agent. What practice helps make the setup reviewable?

    Show answer and explanation
    1. Only rename the top-level test.
    2. Validate resolved per-instance configuration.
    3. Assume broad configuration matches are always intended.
    4. Only print the wildcard expression.

    Answer: Validate resolved per-instance configuration.

    Inspect effective values at each instance and check them against elaborated interfaces. The intended setting and the resolved configuration may differ.

  46. 46.A sequence item permits 16-bit data, but the connected DUT port is 8 bits. What should the driver and model define?

    Show answer and explanation
    1. The intended width conversion and legality
    2. Only whether the input randomizes successfully
    3. Only the item's display radix
    4. A guarantee truncation can never affect results

    Answer: The intended width conversion and legality

    A width mismatch can silently truncate data or alter signed interpretation. Validate configuration and make any required conversion explicit in both stimulus and reference behavior.

  47. 47.A test's configuration selects little-endian byte assembly, while its predictor uses big-endian assembly. What fixture most directly reveals the mismatch?

    Show answer and explanation
    1. Only all-zero payloads
    2. Distinct non-symmetric byte values
    3. Only packets with one byte
    4. Only repeated identical bytes

    Answer: Distinct non-symmetric byte values

    Zero or repeated-byte values can hide order errors. Use data whose interpretation changes under the competing assembly rules and check the stated endianness.

  48. 48.Bytes [0x12,0x34] arrive least-significant byte first for a 16-bit value. What value should the reference assemble?

    Show answer and explanation
    1. 0x0034
    2. 0x1246
    3. 0x3412
    4. 0x1234

    Answer: 0x3412

    The first byte occupies bits 7:0 and the second bits 15:8, so the result is (0x34<<8)+0x12=0x3412.

  49. 49.A checksum test fills every payload byte with zero. Which additional pattern better probes byte-order-sensitive processing?

    Show answer and explanation
    1. A sequence of distinct byte values
    2. Only a different packet label
    3. A guarantee any checksum bug appears on zero data
    4. Only more all-zero packets

    Answer: A sequence of distinct byte values

    Distinct ordered values can expose permutation and ordering mistakes that symmetric patterns conceal. Choose patterns based on the checksum's specified behavior.

  50. 50.A bitwise inversion block is checked only with input zero. What compact additional set improves per-bit and boundary evidence?

    Show answer and explanation
    1. A guarantee one zero input exercises all data relationships
    2. All ones, walking ones, and walking zeros
    3. Only a longer simulation with no data changes
    4. Only repeated zero with different timestamps

    Answer: All ones, walking ones, and walking zeros

    Structured data patterns can expose stuck bits, coupling, or bit-position errors. They supplement rather than replace specification-based checking and broader stimulus.

  51. 51.A memory test writes the same value to every address, then reads it back. What fault can remain hidden?

    Show answer and explanation
    1. Only the absence of any accepted read
    2. Address aliasing
    3. Every data bit stuck at the wrong value
    4. A guarantee identical data detects all address decoding faults

    Answer: Address aliasing

    If two addresses alias, identical expected data can still match. Distinct address-dependent patterns help expose incorrect address independence.

  52. 52.A model supports sparse byte enables. Tests exercise only all-enabled writes. What targeted stimulus is useful?

    Show answer and explanation
    1. Single-lane and mixed-lane masks with retained-byte checks
    2. Only more full-width writes
    3. A guarantee full writes cover partial-update semantics
    4. Only all-zero addresses

    Answer: Single-lane and mixed-lane masks with retained-byte checks

    Partial writes need evidence that selected lanes change and unselected lanes retain their required values. Use distinguishable data to expose both kinds of error.

  53. 53.A 16-bit register is 0xABCD. A write supplies 0x1234 and enables only the low byte. What value follows under ordinary byte-write semantics?

    Show answer and explanation
    1. 0xAB34
    2. 0x12CD
    3. 0xCD34
    4. 0x1234

    Answer: 0xAB34

    The high byte stays 0xAB and the low byte becomes 0x34, giving 0xAB34. This follows the explicitly stated ordinary lane-update rule.

  54. 54.A backdoor write initializes internal storage but bypasses bus-side protection and write-one-to-clear behavior. What should its use avoid claiming?

    Show answer and explanation
    1. Verification of the bypassed frontdoor behavior
    2. That setup can be faster than bus traffic
    3. That internal storage was initialized
    4. That a backdoor can be useful for controlled setup

    Answer: Verification of the bypassed frontdoor behavior

    Backdoor operations can be useful for setup or observation. They do not exercise interface semantics they bypass, so those need appropriate frontdoor tests.

  55. 55.A register predictor updates after both a bus monitor event and the sequence's manual prediction of the same write. What should be reviewed?

    Show answer and explanation
    1. Only the elapsed simulation time
    2. Duplicate prediction ownership
    3. Only the bus response's text label
    4. A guarantee two updates always improve accuracy

    Answer: Duplicate prediction ownership

    Define which observation path owns prediction. Duplicate updates can apply side effects twice or obscure ordering and mirror consistency.

  56. 56.A read has a specified clear-on-read side effect. A passive monitor notices the accepted read but the predictor ignores it. What state can become stale?

    Show answer and explanation
    1. Only the physical bus clock
    2. The predicted register state
    3. A guarantee only writes can change registers
    4. Only the request's printed address

    Answer: The predicted register state

    Reference state must include specified read side effects and their timing. Merely predicting writes is insufficient for registers with such behavior.

  57. 57.A stimulus sequence directly forces an internal state that legal inputs cannot reach, then reports a supported-use functional failure. What must the report distinguish?

    Show answer and explanation
    1. Only whether the simulator accepted the command
    2. Only the force command's length
    3. The injected-state experiment from legal reachable behavior
    4. A guarantee forcing establishes normal reachability

    Answer: The injected-state experiment from legal reachable behavior

    Fault injection can be valuable, but its scope differs from legal-input functional testing. State the injected condition and the fault-handling contract being assessed.

  58. 58.A fault-injection test flips one data bit in transit. The final output is wrong, but the checker reports success. What should the testbench validation investigate?

    Show answer and explanation
    1. Only whether the test's name contains 'fault'
    2. Whether the intended fault reached a checked observation
    3. Only the number of random seeds
    4. A guarantee running an injector proves checker sensitivity

    Answer: Whether the intended fault reached a checked observation

    Confirm injection location, propagation, and oracle activity. A passing mutant can expose a missing check or an injection that never affected the relevant behavior.

  59. 59.A reference model logs an error but a reporting filter downgrades it to information, leaving the regression green. What should regression validation include?

    Show answer and explanation
    1. Only the visual color of the log
    2. A guarantee every logged mismatch fails a test automatically
    3. Only whether an error string exists somewhere
    4. Severity and exit-status propagation

    Answer: Severity and exit-status propagation

    Detection is useful only if the run's result reflects it appropriately. Test the reporting path with a known failure and inspect the final status.

  60. 60.A test contains an expected protocol error. Its result logic accepts any single error, so an unrelated data mismatch also makes it pass. What should expected-error matching use?

    Show answer and explanation
    1. A guarantee all errors are interchangeable in negative tests
    2. Only the total error count
    3. Only the first message's timestamp
    4. The specific error identity and context

    Answer: The specific error identity and context

    Match the intended diagnostic precisely and retain unrelated failures. Counting one arbitrary error can turn the wrong failure into apparent success.

  61. 61.A driver blocks while waiting for ready and ignores an asserted reset that cancels the transaction by contract. What should its lifecycle handle?

    Show answer and explanation
    1. Only the sequence item's print method
    2. Only data changes after acceptance
    3. A guarantee blocked drivers need no reset behavior
    4. Reset interruption and cleanup

    Answer: Reset interruption and cleanup

    A driver must implement the protocol's reset semantics, including terminating or restarting in-flight work and coordinating item completion as defined.

  62. 62.A monitor emits a partial packet as complete when reset interrupts it. The contract discards incomplete packets. What should its packet state machine do?

    Show answer and explanation
    1. Assume reset never affects monitor assembly.
    2. Emit it with fabricated remaining bytes.
    3. Discard the interrupted partial packet.
    4. Count it as fully accepted payload.

    Answer: Discard the interrupted partial packet.

    The monitor's assembly state must follow the reset contract. Partial observations can be logged separately without misclassifying them as completed packets.

  63. 63.A packet includes an explicit length of three accepted bytes. Backpressure creates five clock edges before completion. What should determine packet payload count?

    Show answer and explanation
    1. A guarantee each stalled edge adds a byte
    2. All five elapsed edges
    3. Only the number of valid transitions
    4. The three accepted-byte events

    Answer: The three accepted-byte events

    Transaction assembly must use protocol acceptance, not elapsed time. Stalls can extend duration without adding payload beats.

  64. 64.A source supports zero-length packets with a header-only completion. What should a testbench parser avoid?

    Show answer and explanation
    1. Recording an empty payload as a valid allowed value
    2. Checking the specified completion event
    3. Assuming every packet contains a payload beat
    4. Recognizing the header-only legal form

    Answer: Assuming every packet contains a payload beat

    A parser that always waits for payload can hang or merge the next packet into the current one. Model each legal packet form explicitly.

  65. 65.A monitor's packet counter is only 8 bits, and a stress test sends 300 packets. What reference count should an unbounded diagnostic retain?

    Show answer and explanation
    1. 256
    2. 44
    3. 255
    4. 300

    Answer: 300

    The observed test has 300 packets. A narrow checker counter could wrap to 44 and hide accounting errors; use a suitable width or explicitly justified arithmetic.

  66. 66.A testbench assumes request and response channels cannot both transfer on one edge, though the interface allows it. What directed scenario challenges that assumption?

    Show answer and explanation
    1. Only a long idle interval
    2. Concurrent accepted request and response
    3. Only one request followed by a distant response
    4. A guarantee separate channels are mutually exclusive

    Answer: Concurrent accepted request and response

    Independent channels can have simultaneous legal events. Monitors and scoreboards should process all permitted events without an accidental if/else exclusion.

  67. 67.A testbench uses one shared transaction buffer for simultaneous request and response observations. One overwrites the other before analysis. What should change?

    Show answer and explanation
    1. A guarantee one buffer always holds two independent events
    2. Only the random seed
    3. Only the order of log printing
    4. Separate event snapshots and ownership

    Answer: Separate event snapshots and ownership

    Concurrent observations need independent preserved data. Otherwise event loss or corruption can make the scoreboard's view differ from actual traffic.

  68. 68.A reusable checker accepts a parameterized address width, but its internal expected address is fixed to 16 bits. What configuration can expose truncation?

    Show answer and explanation
    1. Only the default 16-bit mode
    2. Only 8-bit addresses equal to zero
    3. A legal wider configuration with high address bits set
    4. A guarantee parameter declarations resize every internal field

    Answer: A legal wider configuration with high address bits set

    Parameterization must propagate through reference state and comparisons. Use distinguishing values beyond the fixed width to expose hidden assumptions.

  69. 69.A request is defined to sample inputs immediately before an edge, and state updates occur after that sample. The testbench changes the input only after the edge. Which request sees the new input?

    Show answer and explanation
    1. The edge whose sampling already finished
    2. No future request can ever see it
    3. Every earlier edge retroactively
    4. The next applicable sampling edge

    Answer: The next applicable sampling edge

    Under the explicit schedule, the just-completed sample used the old input. Drive and sample phases must align with the intended protocol timing.

  70. 70.A DUT exposes its new registered output after an edge, but a checker compares against the new expectation using the pre-edge output sample. What mismatch is likely?

    Show answer and explanation
    1. Only a missing random seed
    2. A one-cycle observation-alignment error
    3. A proof the arithmetic operation is incorrect
    4. A guarantee pre-edge and post-edge values are identical

    Answer: A one-cycle observation-alignment error

    The checker combines observations from different state phases. Define whether comparisons concern old or updated state and sample accordingly.

  71. 71.An output can remain unknown during reset but must be known on every valid transfer afterward. What checker condition matches that requirement?

    Show answer and explanation
    1. Reject every unknown internal signal during reset.
    2. Ignore all unknown values forever.
    3. Reject unknown required data on valid post-reset transfers.
    4. Assume a two-state conversion preserves evidence of unknown data.

    Answer: Reject unknown required data on valid post-reset transfers.

    Check the contract at its specified observation point. Do not erase unknowns before checking or invent stronger reset requirements for unconstrained fields.

  72. 72.A monitor converts a four-state sampled payload to a two-state value before testing whether required data is known. What can be lost?

    Show answer and explanation
    1. Only the payload's declared width
    2. A guarantee two-state storage preserves all four-state information
    3. Only the number of accepted transfers
    4. Evidence of unknown or high-impedance bits

    Answer: Evidence of unknown or high-impedance bits

    A two-state conversion cannot retain the full four-state distinction. Check required knownness while that information is still available.

  73. 73.A comparison uses wildcard treatment for every expected X bit, but a bug in reference initialization accidentally makes all expected bits X. What checker self-check is valuable?

    Show answer and explanation
    1. Only disable waveform capture.
    2. Validate that required expected fields are initialized.
    3. Only increase random traffic.
    4. Assume every wildcard match is meaningful.

    Answer: Validate that required expected fields are initialized.

    An uninitialized reference can turn comparisons into vacuous matches. Validate oracle state and restrict masking to specification-authorized don't-care fields.

  74. 74.A monitor increments its accepted counter only when payload differs from the preceding beat. What legal stimulus exposes lost transfers?

    Show answer and explanation
    1. Repeated equal payloads on successive accepted edges
    2. Only unique random values
    3. A guarantee equal payload means the same transfer is stalled
    4. Only idle cycles with valid low

    Answer: Repeated equal payloads on successive accepted edges

    Transfer identity is determined by acceptance events, not data changes. Equal consecutive values can represent distinct legal transfers.

  75. 75.A packet parser uses a delimiter value that can also appear as escaped payload. What test specifically challenges correct framing?

    Show answer and explanation
    1. Only empty idle intervals
    2. A guarantee delimiter bytes never need context
    3. Only payloads containing no delimiter values
    4. An escaped delimiter inside payload followed by a real delimiter

    Answer: An escaped delimiter inside payload followed by a real delimiter

    Framing depends on the protocol's escape and delimiter rules. Use a sequence that distinguishes data representation from actual packet termination.

  76. 76.A contract limits the number of outstanding accepted requests to four. A test attempts a fifth while the first four remain pending. What should distinguish a valid stress test from illegal traffic?

    Show answer and explanation
    1. Only whether the fifth payload is different
    2. A guarantee attempted requests always count as outstanding
    3. Whether the fifth request is accepted under the defined flow control
    4. Only whether five items were generated

    Answer: Whether the fifth request is accepted under the defined flow control

    The outstanding limit concerns accepted work under the stated contract. An offered fifth request may be legally stalled; accepting forbidden excess needs detection.

  77. 77.A scoreboard expects up to four responses but allocates storage for only three live entries. What stimulus best exposes the reference limitation?

    Show answer and explanation
    1. Only repeated transactions with no overlap
    2. Only one request at a time
    3. A guarantee scoreboard capacity cannot affect verification
    4. Four distinct simultaneously outstanding IDs

    Answer: Four distinct simultaneously outstanding IDs

    A checker must support the legal concurrency of the interface. Maximum-occupancy stimulus can expose eviction, overwrite, or false-error behavior in the reference itself.

  78. 78.An ingress monitor sees five accepted packets. A legal filter discards two by specification, and three egress packets appear. What should a reference model predict?

    Show answer and explanation
    1. Only the latest ingress packet
    2. Five egress packets regardless of the filter rule
    3. The three packets permitted to emerge
    4. A guarantee every accepted input must produce output in every design

    Answer: The three packets permitted to emerge

    End-to-end conservation must include specified transformations and drops. The model should predict the contract's output obligations rather than impose a universal one-input/one-output rule.

  79. 79.A block splits one accepted packet into two output fragments. A scoreboard matches one output per input and marks the second fragment unexpected. What needs modeling?

    Show answer and explanation
    1. The specified one-to-many transformation
    2. Only equality of input and output packet counts
    3. Only a longer output timeout
    4. A guarantee fragmentation is always duplicate output

    Answer: The specified one-to-many transformation

    Transaction correspondence may be one-to-many or many-to-one. Represent fragment identity, ordering, and completion rules appropriate to the actual transformation.

  80. 80.A compressor can combine three inputs into one output block. What reference representation supports checking without assuming equal packet counts?

    Show answer and explanation
    1. Only a FIFO requiring one output per input
    2. A guarantee compression preserves interface transaction count
    3. Expected decoded content and defined block relationships
    4. Only the total number of valid cycles

    Answer: Expected decoded content and defined block relationships

    The checker should capture the semantic relation and legal framing. Transaction-count equality is not a valid invariant for a contract that changes granularity.

  81. 81.A DUT accepts a request and returns an error with no state change under its invalid-address contract. What should a negative test check jointly?

    Show answer and explanation
    1. Only the presence of any error message
    2. The error response and unchanged protected state
    3. Only whether a response arrives
    4. A guarantee invalid requests cannot affect state by definition

    Answer: The error response and unchanged protected state

    Error signaling and side-effect containment are separate requirements. Verify both, including subsequent reads or other observations of the protected state.

  82. 82.A testbench bypasses a credit check to send an illegal request and observes data loss. What should its claim identify?

    Show answer and explanation
    1. A guarantee every illegal-input outcome violates the normal contract
    2. Only the lost data value
    3. The intentionally violated environment assumption
    4. Only the test's random seed

    Answer: The intentionally violated environment assumption

    Results under assumption violations need a defined fault-handling requirement. Do not label arbitrary behavior outside the supported contract as a normal-use functional failure.

  83. 83.A reference queues an expected response before recording the request's reset generation. Reset arrives between those operations. What should model design prevent?

    Show answer and explanation
    1. Only a longer response latency
    2. Only simultaneous log writes
    3. An inconsistent partially updated obligation
    4. A guarantee reference state updates are conceptually atomic without coordination

    Answer: An inconsistent partially updated obligation

    The model's own concurrent state changes need coherent ordering and ownership. Otherwise reset and transaction handling can corrupt the obligation ledger independently of the DUT.

  84. 84.A verification environment samples coverage in both the driver and monitor and merges the same semantic event twice. What should the metric define?

    Show answer and explanation
    1. One authoritative sampling event or explicit distinct meanings
    2. A guarantee merged counts automatically remove duplicates
    3. Only the total number of callbacks
    4. Always count both as independent evidence

    Answer: One authoritative sampling event or explicit distinct meanings

    Coverage counts require clear event semantics. Generated and accepted traffic can both be measured, but should not be silently conflated or double-counted.

  85. 85.A sequence draws mode A with probability 0.9 and mode B with probability 0.1 independently. What is the probability of no B in three draws?

    Show answer and explanation
    1. 0.729
    2. 0.001
    3. 0.9
    4. 0.3

    Answer: 0.729

    All three draws must be A, so the probability is 0.9³=0.729. A distributional preference does not guarantee the rare mode appears in a short run.

  86. 86.A random test draws one of four equally likely opcodes on each of two independent trials. What is the probability the opcodes differ?

    Show answer and explanation
    1. 0.50
    2. 0.75
    3. 1.0
    4. 0.25

    Answer: 0.75

    After the first draw, three of four possible second opcodes differ from it. The probability is 3/4=0.75.

  87. 87.A generator requires a unique live ID but chooses uniformly with retries from all eight IDs when seven are already live. What is the success probability of one candidate draw?

    Show answer and explanation
    1. 1/8
    2. 7/8
    3. 1
    4. 1/7

    Answer: 1/8

    Only one of the eight IDs is free. Candidate rejection can become expensive near full occupancy; a legal free-ID pool may be a more predictable construction.

  88. 88.A generator rejection loop has no bound, and no legal value exists in the current state. What should the environment provide?

    Show answer and explanation
    1. Only a new seed after every rejected draw
    2. A guarantee rejection sampling always terminates
    3. Only a longer simulation time limit
    4. Feasibility detection or bounded failure handling

    Answer: Feasibility detection or bounded failure handling

    If the legal set is empty, random retries cannot solve it. Detect the state, wait for a defined enabling event, or fail with useful diagnostics according to the test design.

  89. 89.A sequence chooses the next action using the DUT's internal occupancy signal, though the verification contract exposes only external handshakes. What should reuse planning address?

    Show answer and explanation
    1. Only the sequence's class name
    2. Dependence on implementation-specific visibility
    3. A guarantee internal signals exist unchanged in every implementation
    4. Only whether the signal is one bit wide

    Answer: Dependence on implementation-specific visibility

    White-box guidance can be useful, but it limits portability and may change stimulus behavior across implementations. Define the dependency and provide suitable external or modeled alternatives when needed.

  90. 90.A reference is intentionally more abstract than the DUT and omits microarchitectural pipeline stages. What should its interface still define precisely?

    Show answer and explanation
    1. Observable value, ordering, and timing obligations
    2. Only the final data values with no protocol relation
    3. A guarantee abstraction permits ignoring all latency requirements
    4. Every internal register by the same RTL name

    Answer: Observable value, ordering, and timing obligations

    An abstract model can avoid implementation coupling while still enforcing the specified externally visible behavior. Detail should follow the contract, not clone the design.

  91. 91.A scoreboard compares full response structs including an uninitialized testbench-only debug tag. What should the comparison exclude or initialize deliberately?

    Show answer and explanation
    1. Every transaction identifier
    2. A guarantee debug metadata is always valid output data
    3. All functional payload fields
    4. Fields outside the DUT's specified response semantics

    Answer: Fields outside the DUT's specified response semantics

    Comparison policy should distinguish semantic fields from testbench metadata. Uninitialized diagnostic fields can create meaningless mismatches if compared as required DUT behavior.

  92. 92.A model's expected result is computed after reading an actual DUT result into the same temporary variable. What validation helps reveal the self-comparison?

    Show answer and explanation
    1. Known incorrect response injection
    2. Only formatting the temporary variable in hex
    3. Only another passing normal run
    4. A guarantee different function names make the oracle independent

    Answer: Known incorrect response injection

    A controlled wrong response should cause a mismatch. If it does not, inspect dataflow, aliases, masks, and whether the expected value has been overwritten by the actual value.

  93. 93.A test claims to verify queue wraparound but initializes and uses only the first two entries of a depth-16 queue. What scenario precondition is missing?

    Show answer and explanation
    1. A guarantee small occupancy always implies pointer wrap
    2. Movement through the wrap boundary
    3. Only a longer idle delay
    4. Only more payload bit patterns

    Answer: Movement through the wrap boundary

    A wrap test needs legal traffic that advances the relevant pointers through the boundary. Track the actual event rather than infer coverage from the test's name.

  94. 94.A reference uses an unbounded integer for a field whose specified arithmetic saturates at 255. Starting at 250, an accepted addition of 10 occurs. What expected result is correct?

    Show answer and explanation
    1. 255
    2. 250
    3. 4
    4. 260

    Answer: 255

    Saturation clamps 250+10=260 to the maximum 255. Modulo wrap would give 4 for eight-bit arithmetic, but that is a different contract.

  95. 95.A test only compares outputs after a long quiescent period. The contract also forbids transient valid responses before completion. What observation is missing?

    Show answer and explanation
    1. A guarantee correct final state excludes transient protocol violations
    2. Only a final-state checksum
    3. Only a larger batch of end-state comparisons
    4. Cycle-level checks of forbidden intermediate events

    Answer: Cycle-level checks of forbidden intermediate events

    End-state equality can miss illegal intermediate behavior. Add checks at the event granularity needed for the temporal contract.

  96. 96.A testbench callback logs a monitor's transaction after the object was returned to a pool and reused. What should logging preserve?

    Show answer and explanation
    1. Only the handle address
    2. A guarantee deferred formatting always reads old object contents
    3. A stable snapshot before ownership is released
    4. Only the pool's current size

    Answer: A stable snapshot before ownership is released

    Deferred consumers can observe mutated recycled objects. Serialize or copy needed diagnostic state while its ownership and contents are still valid.

  97. 97.A regression runs two tests in one simulation and the reference state is reset only for the first. What should isolation validation check?

    Show answer and explanation
    1. A guarantee sequences returning clears every component
    2. Explicit test-to-test state initialization
    3. Only different random seeds
    4. Only unique test names

    Answer: Explicit test-to-test state initialization

    Shared simulation state can contaminate later tests. Define reset or lifecycle cleanup for scoreboards, predictors, coverage, and pending work as appropriate.

  98. 98.A performance test's monitor performs slow synchronous analysis that stalls the stimulus driver through a shared lock. What must measurement assess?

    Show answer and explanation
    1. Only the DUT's nominal maximum rate
    2. Testbench-induced throttling
    3. Only the number of data bits
    4. A guarantee analysis code cannot affect delivered traffic

    Answer: Testbench-induced throttling

    The environment can change the workload it measures. Verify the actual arrival and acceptance process and avoid attributing testbench bottlenecks to DUT capacity.

  99. 99.A throughput test sends one request only after the previous response, despite a deeply pipelined interface. What property does it directly measure poorly?

    Show answer and explanation
    1. Whether one request can complete under those conditions
    2. Maximum overlapping-request throughput
    3. The latency of each isolated completed request
    4. Single-request response values

    Answer: Maximum overlapping-request throughput

    A sequential driver can underload a pipelined design. To study saturated throughput, provide an appropriate legal concurrent workload and measure actual accepted/completed rates.

  100. 100.An analysis queue grows without bound during a stress test. At simulation end, most observed responses remain unchecked. What should test status reflect?

    Show answer and explanation
    1. Success solely because stimulus finished
    2. Only the number of generated packets
    3. A guarantee queued data has already been verified
    4. Incomplete checking and the analysis backlog

    Answer: Incomplete checking and the analysis backlog

    Observation is not equivalent to completed checking. Drain or fail with bounded handling and report pending analysis so an unfinished checker cannot produce a false pass.

  101. 101.A verification engineer must justify a reusable testbench's quality. Which evidence is strongest?

    Show answer and explanation
    1. Contract-based models, observed traffic, checker self-tests, and verified completion
    2. A guarantee using a standard framework eliminates testbench bugs
    3. Only a large count of random transactions
    4. Only an attractive waveform from one passing run

    Answer: Contract-based models, observed traffic, checker self-tests, and verified completion

    A framework supplies structure, but verification depends on correct stimulus, observation, oracles, configuration, and result handling. Demonstrate those behaviors with concrete evidence.