Open raiker opened 4 years ago
this is tricky, thanks for your report.
Yes, it looks tricky. It might be sufficient to align the first "<=" on each line, though. A similar thing happens with alignment in entity instantiation signal connection lists:
ACIN => (others => '0'),
BCIN => (others => '0'),
CARRYCASCIN => '0',
where the second "=>" in the array expression confuses the alignment.
The same problems happens when <=
comparision is used in if statements.
IF (inputA <= 100) AND (inputB <= 5000) THEN
valueA <= 1;
valueB <= 2;
ELSIF (inputA <= 100) AND (inputB > 5000) THEN
valueB <= 3;
ELSE
valueB <= 4;
END IF;
Report a bug
Input
(align signs in all places selected)
Expected Behavior
The two assignments should be aligned at the first "<=", eg
Actual Behavior
It appears that the 'less than or equal' to in the conditional expression is confusing the alignment, and the output I get is
If I replace the "<=" in the assignment with ">=", everything works correctly:
Thanks