Declare a package name such as mypackage In the package body
Declare a package name, such as \"my_package\". In the package body, perform the following steps. Write a function to convert a \"bit_vector\" into an \"integer\". The function should receive an input of \"bit_vector\" type and return an output of \"integer\" type. It is also necessary to perform the reverse operation. Write a function that converts an input of \"integer\" type to an output of \"bit_vector\" type. Overload the \"+\" operation for the following types of additions: bit_vector + bit_vector = bit_vector blt_vector + integer = bit_vector
Solution
1) maximum bit =32 bit
no. of state = 232
2) bit vector = 5*60
= 300
3) bit vector + integer = bit vector
01 +25=26
bit vector + bit vector = bit vector
01 + 01 = 10
