Complete the code to declare a signed 8-bit signal named data.
signal data : [1](7 downto 0);
unsigned instead of signed for signed numbers.Use signed to declare a signed 8-bit signal.
Complete the code to add two unsigned 4-bit vectors a and b.
result <= [1](a) + unsigned(b);signed and unsigned types in arithmetic.Convert both operands to unsigned before adding.
Fix the error in the code to subtract two signed 8-bit vectors x and y.
result <= [1](x) - signed(y);unsigned conversion for signed subtraction.Both operands must be converted to signed for subtraction.
Fill both blanks to create a 4-bit unsigned vector sum that adds a and b.
sum <= std_logic_vector([1](a) + [2](b));
signed and unsigned conversions.Convert both a and b to unsigned before addition, then convert the result back to std_logic_vector.
Fill in the blanks to convert a signed 8-bit vector val to an integer, add 10, and assign to result.
result <= to_signed(to_integer([1](val)) + [2], 8);
unsigned conversion for signed values.signed after addition.Convert val to signed, then to integer, add 10, convert back to signed with 8 bits, and assign.
