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 agoYes I know Verilog regs/wires/logic types can have other values than integers/0/1 and are arrays/vectors. I expected scalar constants to work as it works in all the other tools mentioned, and since Quartus has a parser which presumably can parse Verilog constants witch could be re-used to parse parameters/generics. But again Quartus seem to support only up to 32-bit integers which I tried as a work around for the git SHA1 I tried to pass (160-bit vectors). Things could of course get ugly when you start to pass enums, packed arrays, structs, and combinations of these (even though not so common in synthesis).