Unformatted text preview: 10.7 See FLD p. 644 for solution. Notes: In line 8, " 00"&a converts a to a 18bit std_logic_vector . The overloaded “+” operators automatically extend b , c , and d to 18 bits so that the sum is 18 bits. In line 9, sum(17 downto 2) drops the lower 2 bits of sum , which effectively divides by 4 to give the average. Adding sum(1) rounds up the value of f if sum(1) = 1. 10.8 See FLD p. 644 for solution. Add the following to the answer given on FLD p. 644: Addout <= '0' & E + Bus; Sum <= Addout(3 downto 0); Cout <= Addout(4);...
View
Full
Document
This note was uploaded on 09/03/2008 for the course EE 316 taught by Professor Brown during the Fall '08 term at University of Texas.
 Fall '08
 Brown

Click to edit the document details