Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Thanks guys, the timestamp script looks to be my best way forward. I'd rather go with my Subversion revision number, but a timestamp is a reasonable substitute. --- Quote End --- In CVS you can use a tag in the Tcl, e.g., I think something like the following set revision_string "$$Revision : $$" which gets re-written during CVS checkin as set revision_string "$$Revision : 1.23 $$" After CVS checkin of the script, you could then parse the string to extract a version number, and then convert that into your register values. You could probably do the same for SVN too. However, the pain with this approach is that specific file never really changes, so the string never updates. I personally use a design version register with a value I manually update, and a build time register. Cheers, Dave