> On May 23, 2017, at 4:37 PM, why...@f-cpu.org wrote: > > Le 2017-05-23 22:32, Attila Kinali a écrit : >> Hi, > Hey ! > >> BTW: Is there a way to pass commandline parameters to ghdl programs? >> Ie I would like to change the simulated bitwidth depending on an external >> parameter given at invokation. Or change above mentioned output filename. >> This would make the scripting of the testbench easier for me. > > I don't think it's possible, however under Linux > it's possible to use environment variables > with one of my extensions. > Hoping this helps,
One other possibility: you can invoke C code from GHDL (if using the GCC form of GHDL) which can do whatever you want and pass information in. For example, I've used that to provide initial memory content: VHDL memory loaded from data read from a file by C code. I've also used it to interface C models of I/O devices to I/O channels modeled as VHDL code. That gives a lot of power and is one of the reasons I use GHDL. paul _______________________________________________ Ghdl-discuss mailing list Ghdl-discuss@gna.org https://mail.gna.org/listinfo/ghdl-discuss