Q3c:FSM logic

a
题目网站

module top_module (
    input clk,
    input [2:0] y,
    input x,
    output Y0,
    output z
);

    assign Y0 = ((~y[2]&y[0])|(y==3'b100))&~x | (~y[2]&~y[0])&x;
    assign z = (y == 3'b011) | (y == 3'b100);

endmodule

posted @ 2024-04-16 03:00  江左子固  阅读(16)  评论(0编辑  收藏  举报