Forum Discussion
Altera_Forum
Honored Contributor
13 years agostd_logic_vector is undefined in terms of mathematical value until you either ask compiler to interpret as either signed or unsigned.
if signed: 000000 + 1 => 000001 000000 - 1 => 111111 (-1) if unsigned: 000000 + 1 => 000001 same as above 0000000 -1 => illegal (-1), what you get is up to tool if allowed if the tool does let you add/subtract on std_logic_vector then it is using default and is not safe.