19. Modules

Question.5

Why does this module fail to compile or synthesize correctly?

module toggle_ff(input clk, output q);
    always @(posedge clk) begin
        q <= ~q;
    end
endmodule
Need Help? Refer to the Quick Guide below

Select Answer