When compiling Altera libraries in Quartus 11.1, specifically the altera_primitives.v file, in Aldec’s Riviera-PRO 2011.06 (or earlier) or Active-HDL 8.3 (or earlier), the following compilation failure will occur:
# ALOG: Error: VCP5018 altera_primitives.v : (34, 16): Macro begin_keywords is not defined. # ALOG: Error: VCP2000 altera_primitives.v : (34, 28): Syntax error. Unexpected token: "1364-1995"[_STRING]. Expected tokens: 'function' , 'task' , 'timeprecision' , 'timeunit' , 'const' ... .
If you get the above compilation error, add the following +define macro definition to your alog command:
alog +define+SKIP_KEYWORDS_PRAGMA –work <target_library_name> <path>/altera_primitives.v
If you compile using GUI menus, then you have to set +define+SKIP_KEYWORDS_PRAGMA in the Additional Options box of Compilation | VHDL settings.
Starting with Active-HDL 9.1 and Riviera-PRO 2011.10 altera_primitives.v file compiles as is without additional options necessary.