Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Column Scanning Matrix in VHDL

Hi, I am new to VHDL. If I had 3x3 matrix say:

110

010

001

How would I check the row numbers which contain their first one starting from scanning the bottom left element in the matrix and moving up then repeating on next column once a '1' has been found.

Please and thank you.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    There are problems with your example:

    Integer cannot be broken down into bits, so I assume you mean a type like unsigned or signed?

    On this note - your MATRIX assignment doesnt match with the dimensions.

    Please repost an example that is correct.