HDL-Bits Solution: Two Gates

In this quiz, I was required to create an XNOR gate, and its output is used to drive another input through an XOR gate. I used bitwise operators here.

 

This is my code.

module top_module (
    input in1,
    input in2,
    input in3,
    output out);
    
    assign out = ((~(in1^in2))^in3);
 
endmodule

Reference : https://hdlbits.01xz.net/wiki/Exams/m2014_q4g

Leave a Reply

Your email address will not be published. Required fields are marked *