![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
Many thanks for your help Weng!
Moises Moises |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |