[HDLBits] Exams/m2014 q4c

Implement the following circuit:

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

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

 

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