HDLBits Solution: Simple Circuit A

This quiz required me to create a circuit that implement this digital equation z = (x^y) & x.

This is my code. This is one of the easiest one.

 

module top_module (input x, input y, output z);
    
    assign z = (x^y) & x;
 
endmodule
 
 

Reference: https://hdlbits.01xz.net/wiki/Mt2015_q4a

Leave a Reply

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