Question: A and B are bit vectors that represent unsigned binary numbers. Write a VHDL function that returns TRUE if A . B . The function

A and B are bit vectors that represent unsigned binary numbers. Write a VHDL function that returns TRUE if
A . B. The function call should be of the form GT(A, B, N), where N is the length of the bit vectors. Do not
call any functions of procedures from within your code. Hint: start comparing the most signicant bits of A and
B rst and proceed for left to right. As soon as you nd a pair of unequal bits, you can determine whether or not
A . B. For example, if A 51011010 and B 51010110, you can determine that A . B when you make the fourth
comparison.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!