Sim/circuit7

2023. 6. 20. 20:21FPGA/HDLBits

728x90

This is a sequential circuit. Read the simulation waveforms to determine what the circuit does, then implement it.

module top_module (
    input clk,
    input a,
    output q );

    always @(posedge clk)begin
        q <= 1'b1;
        if(a)
            q <= 1'b0;
    end
endmodule

 

'FPGA > HDLBits' 카테고리의 다른 글

Always case2  (0) 2023.06.24
Sim/circuit9  (0) 2023.06.20
Sim/circuit6  (0) 2023.06.20
Sim/circuit5  (0) 2023.06.20
Sim/circuit4  (0) 2023.06.20