CSE20 Lecture 5 - CSE20 Lecture 5 1/26/10 Solutions to...

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

View Full Document Right Arrow Icon
1 CSE20 Lecture 5 1/26/10 Solutions to Exercise 1 CK Cheng UC San Diego
Background image of page 1

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

View Full DocumentRight Arrow Icon
Outlines 1. Hybrid System 2. Subtracter 3. Proof by Induction 4. Modulus Operations 2
Background image of page 2
3 1. Hybrid System Problem: A hybrid system has 5 digits of radix 3 and 4 digits of radix 4. Describe the range of the system. A B C D E 0 1 2 3 5 Possibilities A B C D 0 1 2 3 4 4 Possibilities Therefore range is from 0 to (3 5 * 4 4)
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 2. Subtracter Problem: Write the truth table of a full subtracter with three binary inputs x, y, bin, and to binary outputs b, d X Y B in D b out 0 0 0 0 0 0 1 0 0 1 1 1 2 0 1 0 1 1 3 0 1 1 0 0 4 1 0 0 1 1 5 1 0 1 0 0 6 1 1 0 0 0 7 1 1 1 1 1 -2 b out + d = x – y – b in Ex.Row7 11111 //values of row7 2+1=1–1–1 1= 1 //plug into equation -1 = -1 //Huzzah! It ’s true Note: There is no difference between column “d” and the sum from adder
Background image of page 4
5 Difference: Notice: Id x y b in b out d The difference column and 0 0 0 0 0 0 the sum column are the 1 0 0 1 1 1 same. 2
Background image of page 5

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

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

This note was uploaded on 06/12/2011 for the course CS 1 taught by Professor Staff during the Fall '08 term at Cornell University (Engineering School).

Page1 / 9

CSE20 Lecture 5 - CSE20 Lecture 5 1/26/10 Solutions to...

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

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