Electrical – I’m writing a simple verilog code, having little trouble

codeverilog

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
Line 9 says syntax error. Will attach image of error also

error message

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.