Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > intialisation of matrix of integers

Reply
Thread Tools

intialisation of matrix of integers

 
 
mohansriram mohansriram is offline
Junior Member
Join Date: Aug 2012
Posts: 1
 
      08-30-2012
please help me how to initialise a matrix containing integers of order 2x2
.
.
.
.
.
.
.
.
>what is the problem in following program, i could'nt understand:


library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_signed.all;

entity test_12 is
port(a,b,c,d:in integer;e,f,g,h: out std_logic_vector(4 downto 0));

end test_12;

architecture behv of test_12 is
type a11 is array(1 to 2,1 to 2) of std_logic_vector(2 downto 0);
type b11 is array(1 to 2,1 to 2) of std_logic_vector(2 downto 0);
signal sa,sb,sc,sd:signed(3 downto 0);
begin
sa<= conv_signed(a,4);
sb<= conv_signed(b,4);
sc<= conv_signed(c,4);
sd<= conv_signed(d,4);
a11<=((sa,sb),(sc,sd));
process
begin
e:=a1(1,1)+'1';
end process;
end behv;

in this program, it was showing that "conv_signed" is unknown identifier
but conv_signed is predefined function in std_logic_arith library....

please anyone help me in this program
 

Last edited by mohansriram; 08-30-2012 at 05:18 AM..
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Matrix operations on character matrix element? Terry Reedy Python 0 04-02-2009 12:12 AM
Matrix*Vector and Vector*Matrix Holgerson C++ 3 10-26-2007 07:38 AM
Matrix composed by two matrix lvcargnini VHDL 3 07-05-2006 07:21 AM
Intialisation order and statics Spacen Jasset C++ 6 01-31-2005 09:08 PM
Re: Matrix DTS and Matrix 2 DTS? PeterTHX DVD Video 0 08-03-2003 05:46 AM



Advertisments