Repository navigation
ghdl: pass EXTRA_OPTIONS to ghdl -r and fix verilog mode dependency - #587
Open
anirudh12032008 wants to merge 1 commit into
Open
anirudh12032008 wants to merge 1 commit into
anirudh12032008 wants to merge 1 commit into
Conversation
The flow API Ghdl tool passes generics to make as EXTRA_OPTIONS, but the run recipe never expanded it, so generics were silently dropped. Also, in verilog mode the run target depended on work-obj<std>.cf, which nothing creates; depend on the library .cf as the sim branch does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #586.
Two small fixes in the flow API
Ghdltool.Ghdl.run()passes generics (and the deprecated vlogparams) asmake run EXTRA_OPTIONS=-gNAME=value, but therunrecipe never expanded$(EXTRA_OPTIONS), so they never reachedghdl -r. The recipe now ends with$(EXTRA_OPTIONS), same as the icarus and vcs tools and the legacy ghdl Makefile.mode: verilogtheruntarget depended onwork-obj<std>.cf, which no rule creates, somake runfailed. It now depends on<lib>/<lib>-obj<std>.cf, the same file the sim branch uses.Tests: the existing
tests/test_tool_ghdl.pycases compare the generated Makefile againsttests/tools/ghdl/*/Makefile; the four reference files are updated (one line each). No new test files.Checked:
test_reporting.py, which needs pandas): 205 passed; the 3 failures (test_ghdl_04, twotest_icarus) also fail on currentmain.ghdlscript on PATH:make run EXTRA_OPTIONS=" -gWIDTH=8"now invokesghdl -r ... top -gWIDTH=8(before: no-gargument), and the verilog-mode Makefile runsghdl --synth --out=verilog ...(before: "No rule to make target work-obj08.cf").