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
posted @ 2024-03-07 16:19  江左子固  阅读(6)  评论(0)    收藏  举报