Hello,

just a thought : I have looked at the GHDL manual
and I may have missed it. But I don't remember seeing
a way to input parameters to a simulation with the command line.
That would be very helpful in scripts, it would void
the need to create a file that is loaded at the beginning
of the simulation for example. Or even : patching the
source and recompiling all the time...

Beside Tristan's valuable and very limited time,
is there a reason why it can't be done ?
I don't remember seeing other tools do it,
but I may have missed the feature as well.

Maybe I could add a set of functions (through VHPIDIRECT)
that read the command line, but a sub-function
does not have access to argc & argv, what can I do ?
And on top of that, I suppose that the command line parsing
routines of the GRT already filter the parameters and
reject all the unknown commands. There is still the
possibility of a pipe (echo "parameter=value" | ./my_arch)
but I want to keep the stdin free for other uses.


While we're at it : how would it be possible to
return a given value to a calling script ?

I am evaluating situations where GHDL would act
like a real program, so recompiling it all the time
is not a good solution (it is still possible but
really overkill). Command line parameters are
much more practical :-) Did I miss something ?

yg
-- 
http://ygdes.com / http://yasep.org


_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to