On 14/03/15 07:29, Tristan Gingold wrote:
On 11/03/15 19:34, Adrien Prost-Boucle wrote:
Hello,
My colleagues and I love the new parameter -gNAME=VALUE to launch a
simulation with some particular generics. It's very handy to evaluate
and test entities in various situations. Thank you for that feature!
Currently the only handled generic type is string. While it's possible
to convert this into any other type and value including integer/natural,
it's not straightformard and this needs specific conversion functions.
The code involved adds unnecessary complexity and tends to obfuscate
functionality for people who don't know/understand where that comes
from.
See the little testbench I sent in previous messages as illustration
(attached again there).
Would it be possible to extend the feature to other generic types?
I think std_logic and integer/natural/positive would fit most use cases.
Hello,
I have just added generic override for integer types. Will do for
enumerated types soon.
Now handled.
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss