概述
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.所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复