Altera_Forum
Honored Contributor
13 years agoEmbedding build number in VHDL?
I'd like some automatic way of putting a build or release or version number into my design so that I can check what version a given PCB is programmed with. Can anyone suggest how to do this?
I've done this in 'C' by running a batch file as part of a build before doing the compile. The batch file generates a header file that I can# include and consists of a# define statement for the revision number. My first proble is that I don't know how to add a pre-build operation in Quartus. My second problem is that I don't know how to do a# include in VHDL. I guess I could write the whole VHDL in my batch file.