M16_2_M16_Discussion2

M16_2_M16_Discussion2 - UCLA Department of Electrical...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
UCLA Department of Electrical Engineering EEM16 – Fall 2011 Discussion2 1. Ex 2.3 Give a high-level specification of a combinational system that computes the distance between two 1’s in the input bit-vector ± ² ³´µ ¶ · ¶ ¸ ¹ . Assume that has exactly two 1’s. For instance, if ± ²º¶ »¶ º¶ »¶ »¹ then the distance is 2. 2. Ex 2.11 a. For the integer with decimal representation 34567, give the corresponding bit-vectors for the BCD code and for the Excess-3 code. b. Perform the subtraction of ¼ µ¸ ± ²½½½½½ µ¸ ¾ ¿ÀÁÂà µ¸ ¹ for the integers represented in BCD and in the 2-4-2-1 codes. Use the fact that in the 2-4-2-1 code the complement with respect to 9 is obtained by complementing each bit. 3. Combinational Logic Design: Write the (i) high-level description, (ii) truth table, and (iii) one-set and zero-set for each of the three functions described by the following specifications. 1)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

M16_2_M16_Discussion2 - UCLA Department of Electrical...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online