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.
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
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.