Score masked simulation checks with unknown outputs

A self-checking simulation compares a controller's four-bit response with an expected response. A comparison mask selects which bit positions the checker inspects: 1 means compare, and 0 means ignore. All strings run from bit 3 on the left to bit 0 on the right.


The symbol X may appear in the observed response. An X in a checked position counts as one mismatch. An ignored position contributes no mismatch, regardless of its value. A test passes only when its mismatch count is zero.


Complete the table with exact integer mismatch counts and the words Pass or Fail. Each checked bit contributes at most one mismatch.

TestExpected responseObserved responseComparison maskMismatch countResult
A101010001111
B0110X1100111
C11011X001111
D0011X0100101

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Computer-Aided Design and Simulation Tools for Digital Design Questions: