Question: 1) Write a VHDL subprogram that implements the function of finding the maximum of 4 inputs. The subprogram should take four 8-bit unsigned std_logic_vectors as

1) Write a VHDL subprogram that implements the function of finding the maximum of 4 inputs. The subprogram should take four 8-bit unsigned std_logic_vectors as inputs and output an integer result. The result should be the index ( 0-3) of the multiple inputs having the same maximum value, take the first one for the output index. e.g., for inputs "34, 51, 255, 25S", (expressed as integers) take the third input as the max
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
