[HDLBits] Exams/m2014 q4b

Implement the following circuit:

[HDLBits] Exams/m2014 q4b_第1张图片

module top_module (
    input clk,
    input d, 
    input ar,   // asynchronous reset
    output q);
    always@(posedge clk or posedge ar) begin
        if(ar)
            q<=1'b0;
        else
            q<=d;
    end
endmodule

 

你可能感兴趣的:(HDLBits,fpga开发,verilog,fpga)