01-18-2019 01:35 AM
Hello,
I want to create a 32-bit number from one 10-bit number and one 20-bit number and merging them.
Please find attached snap of my question.
Please help, thanks in advance.
Solved! Go to Solution.
01-18-2019 05:34 AM - edited 01-18-2019 05:34 AM
Cast the 10 bit and 20 bit numbers into a 32-bit. Then shift the 10 bit number to the left 20 times and OR the values together.
01-20-2019 10:18 PM
Hello,
Thanks for quick solution.
Now can I apply this operation to entire table elements ? I have a table in which 1st column consists of 10 bit address and 2nd column consists of 20 bit data. Can I apply similar operation to all the table elements ?
01-21-2019 05:48 AM
@Karan_jasani wrote:
Now can I apply this operation to entire table elements ? I have a table in which 1st column consists of 10 bit address and 2nd column consists of 20 bit data. Can I apply similar operation to all the table elements ?
Use a FOR loop to iterate through your rows and apply the logic to combine and make a new array.