On Wed, 14 Mar 2012 11:18:45 +0100, Sylvere Teissier wrote:
Le 14/03/2012 11:13, [email protected] a écrit :
On Wed, 14 Mar 2012 11:07:23 +0100, Sylvere Teissier wrote:
Le 14/03/2012 10:57, [email protected] a écrit :
I have created the solution :-)
Enjoy : http://ygdes.com/GHDL/ghdl_env/
it's not really a solution here because you can't change a generic
value
at run-time :(
at least the VHDL can be compiled only once and the
shell can export a given variable that is read by the program,
to influence the run. And the functions that I created can
be reused almost everywhere you need an integer or a string,
here is the example program that demonstrates that a generic
can be set at runtime from an environment variable
So we can call "VHPI direct" functions during elaboration time !
why not ? a function is a function, and VHDL is awesome VHDL,
very interesting :)
and GHDL is close to magic ;-)
try that in Verilog...
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss