combine circuits A and B
题目如下:

代码如下:
module top_module (input x, input y, output z);
wire za;
wire zb;
assign za = (x ^ y) & x;
assign zb = ~(x ^ y);
assign z = (za | zb) ^ (za & zb);
endmodule
题目如下:

代码如下:
module top_module (input x, input y, output z);
wire za;
wire zb;
assign za = (x ^ y) & x;
assign zb = ~(x ^ y);
assign z = (za | zb) ^ (za & zb);
endmodule