#10 Functions with default parameters not recognised in linting

Closed
opened 8 years ago by haydenw · 1 comments
haydenw commented 8 years ago
function my_func(a : boolean; b: boolean := true) return boolean;
...
signal a : boolean;
...
a <= my_func(true); -- No matches for function

Linting does not recognise functions whose types match when default parameters are used. It's unclear to me whether this is actually part of the VHDL standard, but appears to have widespread support.

An example can be found in this textbook: https://books.google.com.au/books?id=XbZr8DurZYEC&lpg=PA406&ots=Pc6pDqErqV&dq=default%20function%20parameters%20in%20vhdl&pg=PA406#v=onepage&q&f=false

function my_func(a : boolean; b: boolean := true) return boolean; ... signal a : boolean; ... a <= my_func(true); -- No matches for function Linting does not recognise functions whose types match when default parameters are used. It's unclear to me whether this is actually part of the VHDL standard, but appears to have widespread support. An example can be found in this textbook: https://books.google.com.au/books?id=XbZr8DurZYEC&lpg=PA406&ots=Pc6pDqErqV&dq=default%20function%20parameters%20in%20vhdl&pg=PA406#v=onepage&q&f=false
vhdl-tool commented 8 years ago
Owner

Fixed. Will be in version 0.5.

Fixed. Will be in version 0.5.
Sign in to join this conversation.
No Label
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.