Create 8 D flip-flops with active high asynchronous reset. All DFFs should be triggered by the positive edge of clk.文章来源:https://www.toymoban.com/news/detail-647583.html
module top_module (
input clk,
input areset, // active high asynchronous reset
input [7:0] d,
output [7:0] q
);
always@(posedge clk or posedge areset) begin
if(areset)
q<=8'd0;
else
q<=d;
end
endmodule
异步就是在always敏感列表里加上对应的reset,同步不用加文章来源地址https://www.toymoban.com/news/detail-647583.html
到了这里,关于[HDLBits] Dff8ar的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!