Altera_Forum
Honored Contributor
17 years agoDoes QII support verilog string parameters?
I'm confused..
I admit to not being an expert on all things verilog (or anything in life for that mater), but I am trying to learn to parameterize a new module definition to expand its usefulness without undue added complexity... (what else are parameters for??) I've googled and found conflicting evidence whether or not verilog supports string-type parameters.. I've seen googled references showing syntax like this: --- Quote Start --- module my_module ( parameter string my_name = "BOB" from {"BOB", "SAM"}; [...] --- Quote End --- Which looks to be an enumerated type parameter to allow the compiler to infer integer representations for human-readable values ... cool... But QuartusII (v7.2 sp3) no likey-likey.... --- Quote Start --- Error (10170): Verilog HDL syntax error at [file](36) near text "parameter"; expecting ")", or ",", or ".", or an identifier ("parameter" is a reserved keyword ), or "{", or "input", or "output", or "inout", or "(*" --- Quote End --- Any ideas on enumerated type / string parameters in verilog (2001) using QII? thanks! ..dane