20065eeM16_2_M16_1_hw1sol

# 20065eeM16_2_M16_1_hw1sol - EE M16 Fall 2003 Homework...

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

EE M16 Fall 2003 Homework Solution #1 2.1 A combinational system has one input x , which represents a decimal digit. The output z is the square of x if x is greater than 4 ; otherwise, the output z is two times x . a. Give a high-level description of the system using expressions. b. Show a table of the function. Solution: a. {} = 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 , 2 2 x x x x z b. 2.8 Solve the following problems. a. Give a binary code to represent the month of a year. b. How many bits is the minimum needed to represent the date (month, day, year)? Use a vector of three components and represent each component in the binary number system. Consider dates up to the year 2500. c. What is the minimum needed for the date of (b) if the representation of the day and of year are done in decimal (two digits for the day and four digits for the year)? d. What is the minimum number of bits required for the date of (b) if just one component is used? What is the disadvantage of this representation? Solution: a. Other codes are also applicable, as long as each code is different.

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.

## This note was uploaded on 10/31/2009 for the course EE EE M16 taught by Professor Eshaghian,m.m. during the Fall '09 term at UCLA.

### Page1 / 4

20065eeM16_2_M16_1_hw1sol - EE M16 Fall 2003 Homework...

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

View Full Document
Ask a homework question - tutors are online