M16_2_M16_Discussion2

M16_2_M16_Discussion2 - UCLA Department of Electrical...

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

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)

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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
Ask a homework question - tutors are online