Forum Discussion
Altera_Forum
Honored Contributor
11 years agoAssignments for vectors inequal in length
let's t and d - unsigned vectors and they have different length, and perhaps reverse range does assignment t := to_unsigned(to_integer(d), t'length) right? what is regular way?
Altera_Forum
Honored Contributor
11 years agogood. I pointed it - have proper declarions.
what will be in case of d'length > t'length ? what will be on truncation of d : a) d(d'left downto d'left-t'length+1) or b) d(t'length+d'right-1 downto d'right) ? i will try avoid using assignment with result truncation until it is really needed.