Design a circuit that detects whether a 2-bit input matches the pattern 2'bx1. Implement two versions using different equality operators.
Requirements
- Module:
x_detector - Inputs:
a[1:0] - Outputs:
eq_logic — result of a == 2'bx1 (logical equality)eq_case — result of a === 2'bx1 (case equality)