Re: Type Conversion


[ Follow Ups ] [ Post Followup ] [ ECE 532 Discussion Area ] [ FAQ ]

Posted by Michael van Dam on January 25, 1998 at 18:31:42:

In Reply to: Type Conversion posted by Howard Chou on January 24, 1998 at 02:39:57:


: Is it possible to convert an integer type to
: std_logic_vector? Say convert an integer 3 to "11"?

Yep, there is a predefined function which takes care of this.

Include
LIBRARY ieee;
USE ieee.std_logic_arith.ALL;
in your code, and then the function to use is

CONV_STD_LOGIC_VECTOR(int_value, vector_size)

Hope this helps...
Mike



Follow Ups:


Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ ECE 532 Discussion Area ] [ FAQ ]