-
Notifications
You must be signed in to change notification settings - Fork 6
Description
It's very nice to get external information such as git status in a register, but I'd like an extension of this feature where one can add any arbitrary externally sourced information in registers.
An example use-case: I have a project where I keep version information in a .yml file since other scripts require this. In the .tcl script, one can extract this version number and put it in this config record. No need for us to copy this value in the RTL. Then one project might have this version in a .json, one in an .ini, one in a .toml, etc, etc. I saw that you guys had put in a bunch of useful stuff in the register interface (e.g. build time, vivado version), but it would be nice if this config file would be more easily extendible and reached. Also since everyone has their wants and needs, some need something more light to include in legacy project.
As to how to implement, one could do something similar to preSynth_GitVersionRegister_Vivado.tcl to put data in a sort of config file, then have code similar to mem_GitVersionRegister.pkg.vhdl to read this out. Personally, I'd make it into a record type of some sorts. One can then put this record in a package and access this accross the entire project. No need to wire stuff. And would then easily integrate with the contant registers you guys already have.