D latch

题目如下:

Implement the following circuit:


代码如下:

module top_module (
    input d, 
    input ena,
    output q);
    always@(*)begin
        if(ena)begin
            q=d;
        end
    end
endmodule

电平触发嗯哼边沿触发的区别

posted @ 2024-03-14 21:21  江左子固  阅读(6)  评论(0)    收藏  举报