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
It was really frustatric sine it did not work. I could see that the preprocessor did some wired stuff. It added addtional ines to the code at wrong position.
PROCEDURE my_convenience_procedure (
SIGNAL test : OUT STD_LOGIC;
line_num : NATURAL := 0;
file_name : STRING, line_num => 57, file_name => "Testbench.vhd") IS ==>>> THIS LINE IS WRONG
begin
test <= '1';
info("Some message", line_num => line_num, file_name => file_name);
test <= '0';
END PROCEDURE;
SOLUTION:
Then I tried to write PROCEDURE in lower case (actually my VHDL-formatter does this)
And suddenly everything works well.
To there is an issue with this preprocessor.
The text was updated successfully, but these errors were encountered:
I have tried the feature of adding line_num and file_name to a convenience procudure, like describes in the documentation
Documentation:
With earlier VHDL standard you can add the line_num and file_name parameters to the end of the parameter list for the convenience procedure
procedure my_convenience_procedure(
line_num : natural := 0;
file_name : string := "") is
begin
info("Some message", line_num => line_num, file_name => file_name);
end procedure my_convenience_procedure;
and then let the location preprocessor know about the added procedure
ui = VUnit.from_argv()
ui.enable_location_preprocessing(additional_subprograms=['my_convenience_procedure'])
BUG:
It was really frustatric sine it did not work. I could see that the preprocessor did some wired stuff. It added addtional ines to the code at wrong position.
SOLUTION:
Then I tried to write PROCEDURE in lower case (actually my VHDL-formatter does this)
And suddenly everything works well.
To there is an issue with this preprocessor.
The text was updated successfully, but these errors were encountered: