Q6c:FSM next-state logic

module top_module (
    input [6:1] y,
    input w,
    output Y2,
    output Y4);
    
    assign Y2 = ~w & y[1];
    assign Y4 = (w & y[2])|(w & y[3])|(w & y[5])|(w & y[6]);

endmodule

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