Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Matrix to vector conversion

 
Thread Tools Search this Thread
Old 09-23-2005, 09:42 AM   #1
Default Matrix to vector conversion


Hello,
My name is Moises Paniagua and I am designing a communication interface
in VHDL. I would be grateful if any of you could help me.

My problem is that I have a matrix and I would like to pick up its rows
and register them in a vector of vectors. Find attached the types used
and the part of code, which I am designing.

Many thanks for advance,
Moises Paniagua

type data_out is array(0 to MAT_LENGTH-1,0 to MAT_WIDTH-1) of
std_logic_vector(MAX_BIT-1 downto 0);

type sum_c is array(0 to MAT_LENGTH-1) of
std_logic_vector(MAX_BIT-1 downto 0);

type conv is array(0 to MAT_WIDTH-1) of sum_c;
library IEEE;


use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

use work.librairie.all;

entity convert is
Generic(
length : natural := MAT_LENGTH;
width : natural := MAT_WIDTH);

Port ( input : in data_out;
output : out conv);
end convert;

architecture behaviour of convert is
signal aux : conva;
begin

L1: for i in 0 to width-1 generate
L2: for j in 0 to length-1 generate
aux(i) of sum_c(j) <= input(j, i);
end generate;
end generate;

output <= aux;

end behaviour;



Moises
  Reply With Quote
Old 09-26-2005, 06:01 PM   #2
Weng Tianxiang
 
Posts: n/a
Default Re: Matrix to vector conversion
Hi,
You asked the same question I have asked just several days ago and two
people gave me a very good solutions.

See:
http://groups.google.com/group/comp....cae435c7?hl=en

Weng



Weng Tianxiang
  Reply With Quote
Old 09-27-2005, 02:00 PM   #3
Moises
 
Posts: n/a
Default Re: Matrix to vector conversion
Many thanks for your help Weng!

Moises



Moises
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD Verdict reviews: DODGEBALL, THE ULTIMATE MATRIX COLLECTION, and more! DVD Verdict DVD Video 0 01-17-2005 10:18 AM
GENRE ONLINE UPDATE - 12/10/04 Writer R5 DVD Video 0 12-10-2004 06:00 PM
New Releases: Troy, Ultimate Matrix & status changes: Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 1 08-31-2004 01:02 PM
MATRIX 10-DISC EDITION!!!! alex crouvier DVD Video 22 05-26-2004 07:07 AM
Matrix Revolutions: Getting a bad rap... Jordan Lund DVD Video 10 04-08-2004 11:37 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46