retrun type

Y

yaseenzaidi

I like to know the subtle differences in the qualified expression
stg_logic_vector'(...) and type conversion function
to_std_logic_vector(...) both returning the same type.
 
P

Paul Uiterlinden

I like to know the subtle differences in the qualified expression
stg_logic_vector'(...) and type conversion function
to_std_logic_vector(...) both returning the same type.

Qualifying is used to resolve abiguities (so no conversion takes place),
whereas type conversion really converts from one type to another.

In my experience qualifying is needed most frequently with overloaded
procedures. Example: write(l, string'("hello"));. Without the
qualifying, the type of the second argument of write is ambiguous
(string, std_logic_vector, bit_vector), because write is overloaded for
these types.

Paul.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top