In the image shown below, there says a syntax error at line 10. Its a basic If statement, i dont know why the syntax error shows up. Please advise
Electrical – I’m writing a simple verilog code, having little trouble
codeverilog
Related Topic
- Electronic – Can someone explain a couple of lines of Verilog to me
- Electronic – syntax error near module or module not declared
- Electrical – Verilog Generate statements: Syntax error near “<=”: unexpected <=
- Electronic – Implications of having duplicate case statement in verilog/system verilog design module
- Electrical – System Verilog code syntax error
Best Answer
The octal \037777777640 values shown in the error appear to be interpretations of no-break spaces (which might come from copy-and-pasting from the web, for example). NBSP has a Hex value of 0xA0, which would equate to the octal values you’re seeing.
Try deleting all of your spaces and retyping them.