Forum Discussion

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

Syntax error in testbench

i get counter and counter_tb source code from asic world.

However i get an error when compiling the counter_tb:

Error: E:/ModelSim_Project/Counter/counter_tb.v(48): near " ": syntax error, unexpected non-printable character 0xa0.

It seems no syntax error to me. Pls have a look on it. The source code is attached.

Thanks

2 Replies

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

    --- Quote Start ---

    i get counter and counter_tb source code from asic world.

    However i get an error when compiling the counter_tb:

    Error: E:/ModelSim_Project/Counter/counter_tb.v(48): near " ": syntax error, unexpected non-printable character 0xa0.

    It seems no syntax error to me. Pls have a look on it. The source code is attached.

    Thanks

    --- Quote End ---

    Hi,

    I assume there is a tab or space behind the keyword initial in line 48.

    Kind regards

    GPK