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
 Fall '08
 Brown
 Cin, Mac OS X, FLD p.

Click to edit the document details