>> 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.
>
>
>
Sorry to not have read again before sending. The second line was
 type myTypeMatrix array( numberofitems - 1 downto 0 ) myTypeVector

I always try to strip irrelevant part of the code. Also when we post on
the mailining list, the code may not compile if not all the code is sent.

The issue was : does a cast should copy the signal into a temporary signal
and then no update is done backwards ( it is what happened )

Regards






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

Reply via email to