cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
11,376 Views
Registered: ‎06-27-2012

Reg: Matrix inverse in VHDL

Hello,

 

I would like to do the matrix inverse for 2 by 2 matrix in VHDL. I created matrices by using arrays and let me know how to implement inverse in VHDL.

 

I really appreciate your help, Thanks in advance.

 

Kumar

0 Kudos
1 Reply
Highlighted
Teacher
Teacher
11,372 Views
Registered: ‎08-14-2007

Re: Reg: Matrix inverse in VHDL

Hi,

on

http://www.mathwords.com/i/inverse_of_a_matrix.htm

you find this way to calculate the inverse of a 2x2 matrix.

 

 

theres only one division and six multiplications involved.

 

Instead of an array, you should separate the four values.

That's probably more convenient for a beginner.

 

The division and multiplications need some IP-cores, e.g. from Coregen.

These have latencies that must be taken in account when creating the datapath of your design.

 

Also think about some handshaking, so the preceding and following function blocks know when to provide new input data and when to take ove the calculated results.

 

Have a nice synthesis

  Eilert

 

PS:

 Why is the thread in the simulation forum?

If this thing is needed for simulation only, you could simply work with integers (or real numbers) and write a function for this.

 

 

0 Kudos