Forum Discussion

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

Wait statement error!!!

when i am using the following code

clk_process: process

begin

clk<='0'

wait for 10 ns;---ERROR COMING HERE

clk<='1'

wait for 10ns;

end process

ERROR IS : WAIT SHOULD COME WITH UNTIL CLAUSE......

6 Replies

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

    So, try to do this,

    clk_process: process

    begin

    clk<=NOT clk;

    wait for 10ns;

    end process;

    I think this is the better way to generate a clock signal for test bench.

    Good luck!!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You forgot semi colons in your code.

    How about posting the real code, and the real errors next time.

    And Shikata: your code would not work if you forgot to initialise clk - the OP's code will.