On 05/05/15 13:47, Adrien Prost-Boucle wrote:
Hi,
Since the addition of the -gNAME=VALUE execution-time option,
I've been thinking that this could reveal a possible cause of the fact
that the simulation with GHDL is slower than with commercial tools
like Modelsim or FPGA vendor tools like Xilinx's ISim.
Yes, ghdl doesn't do global optimization and most of the very common
functions from ieee packages aren't fully optimized :-(
The fact that all generics are still available at execution time means
there is no compile-time optimization of these values.
Could it be possible to give to GHDL all VHDL files to compile, in one
command-line, indicate that the given value of generics is the final
one, so GHDL can inline/propagate them all and let GCC optimize the
design?
Does such an option already exists in GHDL?
No, there is currently no such way. I am pretty sure that GCC isn't
the right engine to optimize a design - at least not at the high
level.
If this is possible, I think it would be great.
Yes!
Tristan.
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss