Assignment No. 8 - Registers

 

1.    Perform the bitwise logic AND, OR, and XOR of the two 8-bit operands 10011001 and 11000011.

2.    Given the 16 bit operand 00110101 11001010, what operation must be performed and what operand must be used to

a.    clear all odd bit positions to 0? (Assume bit positions are 15 through 0 from left to right.)

b.    set the rightmost 4 bits to 1?

c.    complement the most significant 8 bits?

3.    Use D flip-flops and gates to design a binary counter with the following repeated binary sequence:   0, 1, 2.

4.    Use D flip-flops and gates to design a binary counter with the following repeated binary sequence:   0, 1, 2, 3, 4, 5.

5.    Use D flip-flops and gates to design a binary counter with the following repeated binary sequence:   0, 2, 1, 3, 4, 6, 5, 7.

6.    Draw the logic diagram of a 4-bit register with mode selection inputs S1 and S0.  The register is to operated according to the function table below.

S1

S0

Register Operation

0

0

No change

0

1

Complement output

1

0

Load parallel data

1

1

Clear register to 0