Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Warning: No Clocks Defined in Design

Everytime I compile my design in the Quartus II software (the web edition), I get a warning that states "No clocks defined in design" even though in my .bdf file I have an altpll block with the input assigned to the pin associated with with the System Clock. What am I doing wrong?

Thanks!

21 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I am facing similar problems.

    I am trying to use the clocks provided on DE1 board from TerAsic (24MHz, 27MHz & 50MHz).

    But My code doesn't work.

    This is my code:

    module LedBlink(CLOCK_24, LEDR);

    input[1:0] CLOCK_24;

    output [7:0] LEDR;

    wire ovf;

    reg out;

    reg en, clk, clr;

    reg[31:0] maxClks;

    reg[7:0] div;

    initial

    begin

    clk = 0;

    div = 0;

    out = 0;

    maxClks = 1000000;

    # 10 en=1;

    # 10 clr=1;

    # 20 clr = 0;

    end

    always @(posedge CLOCK_24[0])

    begin

    div = div + 1;

    if(div == 24)

    begin

    clk = ~clk;

    div = 0;

    end

    end

    always @(posedge ovf)

    begin

    out = ~out;

    end

    assign LEDR[0] = out;

    DelCtr del (ovf, en, clk, clr, maxClks);

    endmodule

    I had made use of the CLOCK_24 pin as a clock by using always construct.

    But still I get the warning in quartus "No Clock Source Defined in Design".

    Pls Help