With an unconstrained std_logic_vector port on a component, it will follow the signal declaration from the higher level entity where the component was instantiated (if the signal is (n downto 0), the port will obviously match this).
However, if assigning a constant vector ("10100001" or x"A1" for example) to the port on the instantiation, the port will automatically default to "0 to 7" instead of "7 downto 0". Is there any way to "detect" that a unconstrained std_logic_vector is in the increasing/decreasing index format, so I can appropriately flip the bits if necessary?
subtype desc8 is std_logic_vector(7 downto 0);in a port associationformal => desc8'(x"A1")and using last part of the rule in 5.3.2.2 e) 2) to specify the subtype. Provide a minimal reproducible example, particularly demonstrating a perceived need to flip bits, see 6.6.2 Object aliases c) 2).