Forum Discussion
Altera_Forum
Honored Contributor
13 years agoit depends what type A and B are. If A is a std_logic_vector you need to first convert it to an unsigned then add the integer. make sure you also include the numeric_std package (and do not add the std_logic_arith package).
if A and B are already unsigned, you can just write: B <= A + 5; But we need to see the declaration of A and B to see what code you really need.