Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21604 Discussions

Syntax error in testbench

Altera_Forum
Honored Contributor II
5,556 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
4,233 Views

 

--- 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
Altera_Forum
Honored Contributor II
4,233 Views

you are right. really unbelievable. thanks a lot

0 Kudos
Reply