Use attributes inside the function to determine the length


Write a VHDL function that will take two integer vectors, A and B, and find the dot product C = Σ ai * bi. The function call should be of the form DOT(A,B), where A and B are integer vector signals. Use attributes inside the function to determine the length and ranges of the vectors. Make no assumptions about the high and low values of the ranges. For example,

1893_cd397059-aa04-4ad3-b754-178e42625a42.png

Output a warning if the ranges are not the same.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Use attributes inside the function to determine the length
Reference No:- TGS02164402

Expected delivery within 24 Hours