This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

define symbols from project

We got our ASIC a few weeks ago. Up to then had used an FPGA to simulate the chip.

I would like to keep the software running seamlessly on both FPGA and ASIC. At the moment the one difference is that they need different clock sources on initilisation.

Easiest would be a #define stating if on ASIC or on FPGA.

Problem is I want one project file were the developer can easily switch from fpga to ASIC
defines are per project, or per target and Keil just copies the entire project defintion.

So then if you want to add or change a module name, you have to do so in both projects.

The easiest way I see now is the have a #define in a h file, and edit it to choose target.

There must be a better way?