我是靠谱客的博主 美满小猫咪,这篇文章主要介绍【HDLBits刷题】Dff8p.,现在分享给大家,希望可以做个参考。

Create 8 D flip-flops with active high synchronous reset. The flip-flops must be reset to 0x34 rather than zero. All DFFs should be triggered by the negative edge of clk.

实现具有高电平同步复位的8个D触发器,同时复位值为0x34,下降沿触发。

module top_module (
    input clk,
    input reset,
    input [7:0] d,
    output [7:0] q
);
    always @(negedge clk)begin
        if(reset == 1)
            q <= 8'h34;
        else
            q <= d;
    end
endmodule

最后

以上就是美满小猫咪最近收集整理的关于【HDLBits刷题】Dff8p.的全部内容,更多相关【HDLBits刷题】Dff8p内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(112)

评论列表共有 0 条评论

立即
投稿
返回
顶部