码迷,mamicode.com
首页 > 其他好文 > 详细

异步复位同步释放

时间:2016-10-07 20:39:58      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:

参考

http://www.cnblogs.com/qiweiwang/archive/2010/11/25/1887888.html

http://blog.chinaaet.com/stephenkung/p/34054

异步复位同步释放代码

module rst(
input clk,
input rst_n,
output reg rst_out
);

reg rst_R;

always@(posedge clk, negedge rst_n)
begin
    if(!rst_n)
        begin
            rst_R <= 1b0;
            rst_out <= 1b0;
        end
    else
        begin
            rst_R <= 1b1;
            rst_out <= rst_r;
        end
end
endmodule

综合出的电路:

技术分享

 

异步复位同步释放

标签:

原文地址:http://www.cnblogs.com/yiyedada/p/5936404.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!