T
Tricky
I would like to know if Im breaking the LRM, because Modelsim throws
me this error :
Error: AWEP_upsampler_TB.vhd(109): Method cannot have a formal
parameter of an access type.
type img_ptr is access image_grey_2d_t;
type source_img_t is protected
procedure setup; --This procedure should be called once at the
start of simulation
procedure create_new_image;
procedure get_source_img( variable source : out img_ptr ); --this
is where the error points to.
end protected source_img_t;
The error occurs when source is decalred as out or inout, or when it's
a function that returns a pointer. Can protected type variables really
not have pointers in them, when normal procedures can?
I was trying to do it this way to save me having copies of the same
array in separate processes.
Thanks in advance
me this error :
Error: AWEP_upsampler_TB.vhd(109): Method cannot have a formal
parameter of an access type.
type img_ptr is access image_grey_2d_t;
type source_img_t is protected
procedure setup; --This procedure should be called once at the
start of simulation
procedure create_new_image;
procedure get_source_img( variable source : out img_ptr ); --this
is where the error points to.
end protected source_img_t;
The error occurs when source is decalred as out or inout, or when it's
a function that returns a pointer. Can protected type variables really
not have pointers in them, when normal procedures can?
I was trying to do it this way to save me having copies of the same
array in separate processes.
Thanks in advance