Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- If you have generics on your top-level entity, they can be set in Quartus using Tcl commands. For example, a design with a timestamp and version register can have the contents defined via
# Build timestamp# - Tcl returns the same as
set timestamp
puts " - Build timestamp ($timestamp 0x)"
# Version (integer format)
set version
# Generics
set_parameter -name VERSION $version
set_parameter -name TIMESTAMP $timestamp
Cheers, Dave --- Quote End --- Thank you all it was easier then thought :) dwh, using tcl is one more thing I need to learn... you mean that from the tcl I can change the value of generic? so in your example VERSION and TIMESTAMP are defined in the VHDL code as generics, std_logic_vector or custom type? Cool!