Specifying vector length in the function output

V

valentin tihomirov

Guest
it seems that the following code will not work

function F() return std_logic_vector (1 to 10) -- error

while the following is compiled

function F() return std_logic_vector

So, I would like to highlight the length to the user looking at package
interface part.
 
"valentin tihomirov" <spam@abelectron.com> writes:

it seems that the following code will not work

function F() return std_logic_vector (1 to 10) -- error
[...]
So, I would like to highlight the length to the user looking at package
interface part.
Just define a subtype.

HTH,
Colin
 

Welcome to EDABoard.com

Sponsor

Back
Top