Forum Discussion

RayHaynes1's avatar
RayHaynes1
Icon for Occasional Contributor rankOccasional Contributor
1 year ago
Solved

Questa and preprocessor defines

I'm trying to use some common verilog source files for both an Altera build and another FPGA manufacturer's build. A different path to the parameters.v file is required for each of the builds. I have...
  • RayHaynes1's avatar
    1 year ago

    Ok figured out a way. Add this to the end of the vlog command for each file that requires that define. Would have been nice to figured out how to set this via a source file but this works.

    vlog ./../verilog/sourcefile.v +define+pAlteraBuild=1