1.
Which of the followings is an unary Boolean function:
Select one:
a. Not
b. And
c. Or
d. Nand
2.
If you want to covert x to its negative value in 2’s complement you should:
Select one:
a. invert (not) every bit in the number x.
b. invert the most significant bit of x.
c. invert every bit of x and add 1.
d. invert every bit of x and subtract 1.
3.
In the HDL implementation of the Bit chip, the output from the DFF is connected to the input of the Mux. This is done
Select one:
a. to convert the Mux into a sequential chip.
b. to ensure that the Bit value is retained after each clock cycle if load is off.
c. to ensure that the new input bit is stored on every clock cycle.
d. to ensure that the Bit value is retained after each clock cycle if load is on.
4.
If we want the ALU to compute the function y-1, what should be the value of the zx (zeroed) and nx (negated)?
Select one:
a. zx = 1, nx=1
b. zx = 0, nx=1
c. zx = 1, nx=0
d. zx = 0, nx=0
5.
The Screen and Keyboard chips have the same interface as RAM chips.
Select one:
True
False
Expert Answer
1.
A unary function is a function that takes only one argument. NOT is a unary Boolean function which reverses the result of the condition or result of a function.
Suppose a is a condition or a Boolean function. When the condition a is true, then the result of the condition NOT a will be false.
AND, OR and NAND are binary functions which takes two arguments.
Hence, the correct option is a.
2.
The procedure to covert x to its negative value in 2’s complement is as follows:
- First invert of flip every bit of X.
- Then add 1 to the result.
Example:
Let the binary number be 10000.
Then the negative value of 10000 in 2’s complement is as shown below:
Inverting 10000 will produce 01111
Then add 1 to 01111
0 1 1 1 1
+ 1
————–
1 0 0 0 0
Hence, the correct option is c.
3.
In the HDL implementation of the Bit chip, the output from the D-Flip Flop is connected to the input of the Mux. The purpose of doing so is to ensure that whenever load is off, the bit value is retained after each clock cycle.
Hence, the correct option is b.
4.
Function=y-1
zx is set if the result is 0, nx is set to if the result is <0
when (Y==0), then 0-1 will produce the result as 1 and borrow as 1. As a result, zx=1 and nx=0.
when (Y==1), then 1-1 will produce the result as 0. As a result, zx=0 and nx=1.
Based on the value of y, options b and c are correct.
When y=0, option b is correct.
When y=1, option c is correct.
5.
The Screen and Keyboard chips have the same interface as RAM chips.
Hence, the correct option is True.