Defined RAM based matrix