Re: How do you handle build variants in VHDL?



On Jul 20, 4:51 am, Mike Harrison <m...@xxxxxxxxxxxxxxx> wrote:
I'm doing a project in Lattice ISPLever ( which bears uncanny similarities to Xilinx ISE), which may
end up having several product variants, and was wondering how people typically handle compile-time
build variants for different product functionalities?

The sort of thing that if it was C software, you'd do it easily with #includes, #defines and
#ifdefs, but for reasons I can't understand, VHDL doesn't have anything like these simple
preprocessor functions.
Although HDLs are very different from programming languages, a preprocessor would be equally useful
& it seems ridiculous that nobody thought to include one in the standard.

Is there a simple way to 'add' a C style preprocessor to the build process?

You should also look up GENERATE. That is how to do actual code
"defines". GENERICS only get you parameters.

Rick
.



Relevant Pages

  • Re: How do you handle build variants in VHDL?
    ... end up having several product variants, ... build variants for different product functionalities? ... preprocessor would be equally useful ... I think VHDL does have these things, and they're called generics, used along ...
    (comp.arch.fpga)
  • How do you handle build variants in VHDL?
    ... I'm doing a project in Lattice ISPLever (which bears uncanny similarities to Xilinx ISE), ... end up having several product variants, and was wondering how people typically handle compile-time ... build variants for different product functionalities? ... Although HDLs are very different from programming languages, a preprocessor would be equally useful ...
    (comp.arch.fpga)
  • Re: How do you handle build variants in VHDL?
    ... end up having several product variants, and was wondering how people typically handle compile-time ... build variants for different product functionalities? ... #ifdefs, but for reasons I can't understand, VHDL doesn't have anything like these simple ... preprocessor functions. ...
    (comp.arch.fpga)
  • Re: How do you handle build variants in VHDL?
    ... end up having several product variants, and was wondering how people typically handle compile-time ... build variants for different product functionalities? ... #ifdefs, but for reasons I can't understand, VHDL doesn't have anything like these simple ... Design parameters are handled quite well without any pre-processor. ...
    (comp.arch.fpga)