On Thu, Oct 09, 2008 at 08:28:43PM +0200, [EMAIL PROTECTED] wrote:
> Hi
> 
> I had a strange issue.
> 
> I am using matrixes defined as a vector of vectors rather than a multi
> dimentional as I access always to a line/column at a time.
> 
> The code was like
> 
> type myTypeVector std_logic_vector( param_size - 1 downto 0 )
> type myTypeVector( numberofitems - 1 downto 0 )
> signal instanceMyTypeMatrix : myTypeMatrix
> 
> 
> I defined somewehre else a component like
> 
> component
> generic .....
> port ( ... theOuput : out std_logic_vector( param_size - 1 downto 0 ) ... )
> 
> If I try to call the component while passing
>   instanceMyTypeMatrix( 2 )
> there is a compilation error.
> If I try to call the component while passing
>   std_logic_vector( instanceMyTypeMatrix( 2 ) ) it compiles but the vector
> is left totally uninitiallized.
> 
> Bug of ghdl or mistake from me?

Hi,

this looks like a mistake from you but it will be more easier to explain
if you provide a compilable example.  In the above exerpt, the first two
lines are not valid VHDL :-)

Tristan.

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to