Design a combinational module bitwise_ops_demo that demonstrates the use of vector bitwise operators.
Requirements
- Module name:
bitwise_ops_demo - Inputs:
A[3:0] (4-bit)B[3:0] (4-bit)
- Outputs:
AND_OUT[3:0] = bitwise AND of A and BOR_OUT[3:0] = bitwise OR of A and BXOR_OUT[3:0] = bitwise XOR of A and BXNOR_OUT[3:0] = bitwise XNOR of A and B
Expected Behavior (example)
If A = 4'b1010 and B = 4'b1100:
| Operation | Result |
|---|
| AND | 1000 |
| OR | 1110 |
| XOR | 0110 |
| XNOR | 1001 |