ERROR VCP2000 "Syntax error. Unexpected token: non-printable: \x0. Expected tokens:'(*' , ';' , 'always' , 'event' , 'function' ... ." "testbench.sv"

2,129 views
Skip to first unread message

justlikebach

unread,
Mar 17, 2018, 7:59:59 PM3/17/18
to EDA Playground
Hi:  I am doing a simple AXI slave test bench.  I was having issue with this error.  It complains on my test.sv, but I am not able to see what is wrong.  Can anyone help?


thanks

EDA Playground

unread,
Mar 19, 2018, 7:21:55 AM3/19/18
to EDA Playground

Hmmm... a funny one... I carry on trying...

EDA Playground

unread,
Mar 20, 2018, 4:04:20 PM3/20/18
to EDA Playground

The problem is that you are missing a close curly bracket on line 7 of transaction.sv . The error message is not very helpful, is it?

Matthew

justlikebach

unread,
Mar 21, 2018, 12:23:59 AM3/21/18
to EDA Playground
Good catch, thanks.  I really hope the message can be a bit clear and close to the location of the issue.

EDA Playground

unread,
Mar 21, 2018, 5:24:41 AM3/21/18
to EDA Playground

Your issue nicely illustrates one of the dangers of `include - an error in one file causes an error to be reported in a completely different file.

Matthew
Reply all
Reply to author
Forward
0 new messages