I've noticed an issue with the indentation/alignment. When a label is used for a process, the whole line gets misaligned if there are "long" variable declarations that follow. Here is an example (original code) of how the "label : process" statement should look like.
architecture behaviour of A_ARITH_MOD is
begin
main : process -- (PROBLEM IS HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!)
variable tempResult : data_qword := (others => DR_INIT);
variable minSize, requiredSize : positive := 8;
variable totalResults : natural := 0;
-- Local registers
variable localStatusRegister : data_bit_vector((S_ALU_STATUS - 1) downto 0) := (others => DR_ZERO);
begin
end process main;
end architecture behaviour;
and here is how it gets formatted.
architecture behaviour of A_ARITH_MOD is
begin
main : process -- (PROBLEM IS HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!)
variable tempResult : data_qword := (others => DR_INIT);
variable minSize, requiredSize : positive := 8;
variable totalResults : natural := 0;
-- Local registers
variable localStatusRegister : data_bit_vector((S_ALU_STATUS - 1) downto 0) := (others => DR_ZERO);
begin
end process main;
end architecture behaviour;
as you can see the distance between the label "main" and the keyword "process is huge".
Some users put the keyword "process" in a new line after the label. No issues there. Here is an example (formatted code).
architecture behaviour of A_ARITH_MOD is
begin
main :
process -- (No problems here)
variable tempResult : data_qword := (others => DR_INIT);
variable minSize, requiredSize : positive := 8;
variable totalResults : natural := 0;
-- Local registers
variable localStatusRegister : data_bit_vector((S_ALU_STATUS - 1) downto 0) := (others => DR_ZERO);
begin
end process main;
end architecture behaviour;
I've noticed an issue with the indentation/alignment. When a label is used for a process, the whole line gets misaligned if there are "long" variable declarations that follow. Here is an example (original code) of how the "label : process" statement should look like.
and here is how it gets formatted.
as you can see the distance between the label "main" and the keyword "process is huge". Some users put the keyword "process" in a new line after the label. No issues there. Here is an example (formatted code).