Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...These forums are an excellent source and example of the way people can help each other..."

Geography

Where in the world do Tek-Tips members come from?
thequickbrownfoxjump (Programmer)
3 Sep 11 14:47
Greetings! This is my first thread.

I have a package that contains the following type:

type t_rgb_64x48 is array(0 to 47) of std_logic_vector(63 downto 0);

and is being used in my file.vhd file.

------------------------

file.vhd contains an entity that contains the type of the package mentioned earlier:

RData_in : in t_rgb_64x48;
ColumnAddress_Start : in integer;
ColumnAddress_End : in integer;
RowAddress_Start : in integer;
RowAddress_End : in integer;

It also contains a signal with its corresponding type:

type t_vgaram is array(0 to 479) of std_logic_vector(639 downto 0);
signal s_rstorage : t_vgaram;

------------------------

I need to access s_rstorage through the following statement:

s_rstorage(ColumnAddress_End downto ColumnAddress_Start)
      (RowAddress_End downto RowAddress_Start)
        <= RData_in(ColumnAddress_End downto
                      ColumnAddress_Start)
                  (RowAddress_End downto RowAddress_Start);

to store the value of RData_in to s_rstorage and making sure that they are of the same width in 2D.

The problem is this error:

Type of s_rstorage is incompatible with type of RData_in.

I know that they have different types as the cause of the error. But how do I fix this problem?
fjodorr (Programmer)
22 Oct 11 11:18
You must typecast them. U can use ready function like to_integer(unsigned(

google it and you will find good guides

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close