olofk / fusesoc

Package manager and build abstraction tool for FPGA/ASIC development
BSD 2-Clause "Simplified" License
1.2k stars 245 forks source link

ghdl analyze_options are not passed to the elab-run command #227

Closed ThomasHornschuh closed 5 years ago

ThomasHornschuh commented 6 years ago

Analyze_options like e.g. --ieee=synopsys must also be passed to the --elab-run command because when using the mcode backend the analyze phase does not generate any object files, so all compilation is done during elab-run. The usage of elab-run is --elab-run <[elab_options...] primary_unit [secondary_unit] [run_options...]> The analyze_options must be passed at the elab_options position.

I changed the respective line in ghdl.py to ghdl --elab-run $(ANALYZE_OPTIONS) $(TOPLEVEL) $(RUN_OPTIONS) $(EXTRA_OPTIONS)

Unfortunately I have not updated fusesoc since a while, so I may use an outdated version and because I have no time in the next 2-3 weeks to make such an update I'm not able to create a pull request. So I hope it is ok to just post this as an issue.

olofk commented 5 years ago

Closed with https://github.com/olofk/edalize/issues/11