Macro `ID is undefined

Since this is Verilog, you’ll need to put your define macro in a header file (.vh) and then include that file when you need that macro.