Assignment 4 Sample problems
Convert the following decimal numbers to binary
Convert the following decimal numbers to binary. 8 => =>
How can we get ? 8 => 8*1= 2 3 => =>512*1+256*1+128*1+16*1+8*1 => =>
Convert the following Binary numbers to Decimal
Convert the following Binary numbers to Decimal => =>307
How can we get ? => 1* *2 4 +1*2 2 = =>1* *2 5 +1* * * 2 0 = 307
Add the following binary numbers. Express your answers in binary =? =?
Add the following binary numbers. Express your answers in binary = =101011
How can we get ? => => => =>
Subtract the following binary numbers. Express your answers in binary =? =?
Subtract the following binary numbers. Express your answers in binary = =10001
How can we get ? => => => =>
Is this statement True or False? If I have an 8-bit system, will result in overflow.
Is this statement True or False? If I have an 8-bit system, will result in overflow. False
How can we get ? The result is still 8-bit, so the answer is False
Provide the two's complement of the following 8-bit numbers
Provide the two's complement of the following 8-bit numbers => =>
How can we get ? 1: => (invert bits) (add one) => : => (invert bits) (add one) =>
Consider the Christmas lights circuit (with states) described in class. Let these be the expressions for the next states. A: not A B: A and B
Fill in the table with True or False where appropriate. Time Step (sec) ABNew ANew B 0False TrueFalse 1TrueFalse 2 3
Fill in the table with True or False where appropriate. Time Step (sec) ABNew ANew B 0False TrueFalse 1TrueFalse 2 TrueFalse 3TrueFalse
The “period” of a pattern is the number of steps it takes before the pattern repeats. What is the period of this pattern?
2