
2条回答 默认 最新
cc__cc__ 2021-09-23 09:52关注module test (in, clk, rst_n, out); input in; input clk; input rst_n; output out; reg A; reg B; wire B_reg; always @(posedge clk or negedge rst_n) begin if(!rst_n) begin A <= 1'b0; B <= 1'b0; end else begin A <= B_reg; B <= in; end end assign B_reg = B; assign out = (~A) & B; endmodule已验证,有帮助望采纳!
本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报解决 1无用