code for identity matrix in hdl

Status
Not open for further replies.
need to generate a identity matrix in hdl plz suggest
type t_MATRIX is (1 to 3, 1 to 3) of integer; -- Assuming a 3x3 matrix
constant IDENTITY3x3:t_MATRIX := (1, 0, 0, 0, 1, 0, 0, 0, 1);

Not compiled or tested, but should get you going.

Kevin Jennings
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…