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?

Regards

Patrick



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

Reply via email to