std_logic_vector'("0011100001111111") ??

Joined
Nov 14, 2008
Messages
3
Reaction score
0
period_h_register <= std_logic_vector'("0000000000000001")??

What does the aspostrophe mean between vector'(

period_h_register <= std_logic_vector'("0000000000000001"):damnmate:


Thanks for any help

lewis
 
Last edited:
Joined
Mar 10, 2008
Messages
348
Reaction score
0
You will find the same structure with for instance

if Clk'event and Clk='1' then .....

if Rising_Edge(Clk) then .... -- alternative version

I believe its same kind of type conversion between std_logic and std_ulogic but I never used it.

Jeppe
 
Joined
Nov 14, 2008
Messages
3
Reaction score
0
jeppe said:
You will find the same structure with for instance

if Clk'event and Clk='1' then .....

if Rising_Edge(Clk) then .... -- alternative version

I believe its same kind of type conversion between std_logic and std_ulogic but I never used it.

Jeppe

Thanks Jeppe

Someone from another forum sent me this answer.

"Qualified expressions" may be used to explicitly identify the type, and possibly the subtype, of an expression. Such qualification is a "hint" to the compiler, informing it as to the desired interpretation of the expression being qualified. Hence, such qualification is legal only if the expression can be legally interpreted as a value of the qualifying type. In contrast to type conversion, no information loss can occur.

The syntax of a qualified expression is similar to the syntax of a type conversion. The difference is that a "tick" (the ''' character) is inserted between the type name and the parentheses surrounding the expression, as shown in the next example:

-- note, both enumeration type declarations have some common
-- enumeration items
type color1 is (violet, blue, green, yellow, red);
type color2 is (black, blue, green, red);

-- this array type has an index type "color1". Without
-- using type qualification this example will not compile
-- because the compiler cannot determine the type
-- of "blue" (might be "color1" or "color2").
type a1 is array(color1'(blue) to color1'(red));

-- this array type has an index type "color2". Without
-- using type qualification this example will not compile
type a2 is array(color2'(blue) to color2'(red));
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top