You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Easy to reproduce error yield by file src/synth/synth-vhdl_oper line 57.
It happens when the vhdl performs an operation (substraction) with a signal a negative number.
Expected behaviour
I expect to perform an addition.
How to reproduce?
entityentisendentity;
architectureaofentissignal scale_product_twice_biased : std_logic_vector(3downto0);
signal shift_value : std_logic_vector(3downto0);
begin
shift_value <= (scale_product_twice_biased) - (-1);
processbeginreport"Hello world"severitynote;
wait;
endprocess;
end;
ghdl -a ent.vhd
ghdl --elab-run ent
NOTE: :file: and :image: identifiers are specific to issue-runner. We suggest to use these, since it allows continuous integration workflows to automatically test the MWE. Using ghdl/ghdl:* docker images to run the MWEs ensures that the latest available GHDL is used.
NOTE: Large files can be uploaded one-by-one or in a tarball/zipfile.
Context
Please, provide the following information:
Additional context
Hopefully there is enough content to understand. I will be around to provide details if needed. A simple double minus sign makes it fail at line 57 of file synth-vhdl_oper.adb. This line throws an exception. Unfortunately i have no knowledge in this language to propose a pull request. For the moment I fix the vhdl by replace "signal - (-8)" by "signal +8" (for example). The problem is that my vhdl is automatically generated, that is why there is sort of nonsense double "-". Cheers.
The text was updated successfully, but these errors were encountered:
Description
Easy to reproduce error yield by file src/synth/synth-vhdl_oper line 57.
It happens when the vhdl performs an operation (substraction) with a signal a negative number.
Expected behaviour
I expect to perform an addition.
How to reproduce?
Context
Please, provide the following information:
version
tarball_url
If a
GHDL Bug occurred
block is shown in the log, please paste it here:Additional context
Hopefully there is enough content to understand. I will be around to provide details if needed. A simple double minus sign makes it fail at line 57 of file synth-vhdl_oper.adb. This line throws an exception. Unfortunately i have no knowledge in this language to propose a pull request. For the moment I fix the vhdl by replace "signal - (-8)" by "signal +8" (for example). The problem is that my vhdl is automatically generated, that is why there is sort of nonsense double "-". Cheers.
The text was updated successfully, but these errors were encountered: