Forum Discussion
Altera_Forum
Honored Contributor
8 years agoPassing parameter/generic to the top level in Quartus/tcl?
I'm trying to pass a git sha1 as a parameter to the top level in Quartus tcl I added a source probe: gits
u_gits
(.probe (160'habbaface000000000000000000000000acdcba...
Altera_Forum
Honored Contributor
8 years agoThe answer is no. The passing of generics to top levels in quartus has been fairly limited for a long time. You're limited to strings, integers, booleans.
You could probably pass it in as a string and have the HDL parse the string into a sensible value. The annoying part you'll find though, is that Quartus doesnt support textio during synthesis, so you'll probably have to write your own conversion function.