Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Implementing firmware version

I am trying to make a code that can store firmware versions from a .txt file, I tried doing it with a ROM initialized with a .mif file, but it's not working. I have a Cyclone III that sends that info to a microcontroller and then to a HMI (human machine interface) screen so I can see the FPGA's firmware version. It's all in VHDL, but I posted this issue a few days ago and I got this reply (that seemed more appropriate, but I don't know how to do it):

--- Quote Start ---

What you are attempting I have done in the past to store hardware versions and software build numbers but I had Nios II reading out the values.

Perhaps you can skip using the ROM and just 'include a value defined in a verilog include file that is generated by your build system. In the include file you could just have something like 'define VERSION_NUMBER <machine generated version number> and in your hardware design refer to that value.

--- Quote End ---

But I've never done anything in verilog, only VHDL. I searched that out but still can't make much of it.

If anyone could possibly post a code on how that's done, it would really help me, been trying to do this for long now.

22 Replies