Gast
#2009420
Hi everyone, i got a problem using a matrix in vhdl. I have a 5x8 matrix (5 x std_logic_vector). this matrix can be modified by user. the user can choose a row and give a decimal number. the decimal number will be converted into std_logic_vetor. for example: data from user: row 2 = 34 --> matrix[2] = "00100010" i need to make a check every time when new data are entered. with this check i want to make sure that every column in the matrix doesn't have more than one '1'. for example see this 5x8 matrix: row 1 00101000 2 01000001 3 10000100 4 10001000 --unacceptable:matrix[4][0] = '1' as well as matrix[3][0] 5 00010000 -- just like matrix[4][4] and matrix[1][4] how can i solve this? any idea? thanks in advance for any help. flex