Hi Patrick,

concerning your question:
      -- Here if the cast is removed,
      -- error is issued while trying to run ghdl with the -a option :
      -- test.vhdl:xyz:7: no interface for 'theoutput' in association
      theOutput => std_logic_vector(instanceMatrix(1)));

ghdl is right: the type of theOutput is std_logic_vector while the
type of instanceMatrix is myVector.  As these are different types, a
type convertion (what you call a cast) is required.

You can avoid this type convertion by declaring MyVector as:

  subtype myvector is std_logic_vector (size_o - 1 downto 0);


I am investigating the other point.

Tristan.

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

Reply via email to