Write a vhdl function which will return the largest integer


1. Write a VHDL function which will return the largest integer in an array of N integers. The function call should be of the form LARGEST(ARR, N).

2. 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 significant bits of A and B first and proceed from left to right. As soon as you find a pair of unequal bits you can determine whether or not A > B. For example, if A = 1011010 and B = 1010110, you can determine that A > B when you make the fourth comparison.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Write a vhdl function which will return the largest integer
Reference No:- TGS02164466

Expected delivery within 24 Hours