Assume that a and b are 3-bit inputs (let a be a2a1a0 and b be
b2b1b0).
(a) Determine the Boolean expression (in terms of a2,a1,a0, b2,b1
and b0) for
the relational operation a>b
(b) Assume that b is a constant and that b = "101". Determine the
Boolean
expression again.
(c) Assume that a is a constant and that a = "101". Determine the
Boolean
expression again.
(a) Determine the Boolean expression \(a > b\)
For two 3-bit binary numbers \(a = a_2a_1a_0\) and \(b = b_2b_1b_0\), to determine \(a>b\), we can compare from the highest bit to the lowest bit.
If \(a_2 = 1\) and \(b_2 = 0\), then no matter what value \(a_1,a_0,b_1,b_0\) takes, \(a>b\), that is, \(a_2\overline{b_2}\).
If \(a_2 = b_2\), we need to compare the next highest bit \(a_1\) and \(b_1\). When \(a_2 = b_2\) and \(a_1 = 1\), \(b_1 = 0\), there is also \(a>b\), that is, \(a_2b_2a_1\overline{b_1}+\overline{a_2}\overline{b_2}a_1\overline{b_1}=(a_2\oplus\overline{b_2})a_1\overline{b_1}\).
If \(a_2 = b_2\) and \(a_1 = b_1\), the lowest bits \(a_0\) and \(b_0\) need to be compared. When \(a_2 = b_2\), \(a_1 = b_1\) and \(a_0 = 1\), \(b_0 = 0\), \(a>b\), that is, \(a_2b_2a_1b_1a_0\overline{b_0}+\overline{a_2}\overline{b_2}a_1b_1a_0\overline{b_0}+a_2b_2\overline{a_1}\overline{b_1}a_0\overline{b_0}+\overline{a_2}\overline{b_2}\overline{a_1}\overline{b_1}a_0\overline{b_0}\)
To sum up, the Boolean expression \(a > b\) =
\[
\begin{align*}
a>b&=a_2\overline{b_2}+(a_2\odot b_2)a_1\overline{b_1}+(a_2\odot b_2)(a_1\odot b_1)a_0\overline{b_0}\\
\end{align*}
\]
Where \(x\odot y=\overline{x\oplus y}=xy + \overline{x}\overline{y}\) is the XOR operation, \(x\oplus y=x\overline{y}+\overline{x}y\) is the XOR operation.
### (b) Assume \(b\) is a constant, and \(b = "101"\)
At this time \(b_2 = 1\), \(b_1 = 0\), \(b_0 = 1\), substitute it into the expression of \(a > b\):
\[
\begin{align*}
a>b&=a_2\overline{1}+(a_2\odot 1)a_1\overline{0}+(a_2\odot 1)(a_1\odot 0)a_0\overline{1}\\
&=0 + a_2a_1+(a_2)(\overline{a_1})a_0\times0\\
&=a_2a_1
\end{align*}
\]
### (c) Assume \(a\) is a constant, and \(a = "101"\)
At this time \(a_2 = 1\), \(a_1 = 0\), \(a_0 = 1\), substitute it into the expression \(a > b\):
\[
\begin{align*}
a>b&=1\times\overline{b_2}+(1\odot b_2)\times0\times\overline{b_1}+(1\odot b_2)(0\odot b_1)\times1\times\overline{b_0}\\
&=\overline{b_2}+ 0+(b_2)(\overline{b_1})\overline{b_0}\\
&=\overline{b_2}+b_2\overline{b_1}\overline{b_0}
\end{align*}
\]
Summary:
- (a) \(a>b=a_2\overline{b_2}+(a_2\odot b_2)a_1\overline{b_1}+(a_2\odot b_2)(a_1\odot b_1)a_0\overline{b_0}\)
- (b) When \(b = 101\), \(a>b = a_2a_1\)
- (c) When \(a = 101\), \(a>b=\overline{b_2}+b_2\overline{b_1}\overline{b_0}\)
Assume that a and b are 3-bit inputs (let a be a2a1a0 and b be b2b1b0)....
Create a combinatorial circuit that performs a 3 bit multiplication. The circuit will have two 3-bit inputs A2 A1 A0 and B2 B1 B0 and one 6 bit output. Create a combinatorial circuit that performs a 3-bit multiplication. The circuit will accept two 3-bit inputs A2 A1 A0 and B2 B1 B0 and generate one 6 bit output. First, create 3 Integrated circuits (iC). The first IC takes as input, B0, A2, A1, and A0 as input, and it generates...
Following the circuit specification below: Comparator: A 3-bit comparator has six inputs A= A2A1A0 and B= B2B1B0, and one output: L. The comparator is a ‘less than’, meaning the output is ‘1’ is A<B. Using your method of choice, find the Boolean expression for the output of the comparator; Draw the logic circuit of the 3-bit comparator
Let a3a2a1a0 and b3b2b1b0 be 4-bit binary number, where a3 and b3 are the most significant bits and a0 and b0 are the least significant bits. Write a boolean formula that evaluates to true if a3a2a1a0 > b3b2b1b0, and false otherwise. Python. Submit a formula. You must use variables a3, a3, a2, a1, b3, b2, b1, b0 in the formula
P5: Design a 3-bit carry-look-ahead adder. Two 3-bit numbers are (A2,A1,A0) and (B2,B1,B0). Use any gates.
Following the circuit specification below: Comparator: A 3-bit comparator has six inputs A= A2A1A0 and B= B2B1B0, and one output: L. The comparator is a ‘less than’, meaning the output is ‘1’ is A<B. Using your method of choice, find the Boolean expression for the output of the comparator; Draw the logic circuit of the 3-bit comparator Available gates (no other gates can be used than the 5 listed below): 2-input NAND 2-input NOR 2-input AND 2-input OR Inverter
BIT MAXIMUM VALUE SELECTOR Consider a simple device that takes two 2-bit binary inputs representing two values ranging from zero to three. The 2-bit value A is represented by two input variables Al and A0. Values of Al and A0 will be used to encode numeric values (in binary) as described below. 2-bit values for the second 2-bit input B and the 2-bit output C are encoded similarly. The 2-bit output C of the de- vice will be the greater...
Suppose the initial conditions of the economy are characterized by the following equations. In this problem, we assume that prices are fixed at 1 (the price index is 100 and when we deflate, we use 1.00) so that nominal wealth equals real wealth. 1) C = a0 + a1 (Y - T) + a2 (WSM) + a3 (WRE) + a4 (CC) + a5 (r) 1’) C = a0 + a1 (Y - 200) + a2 (10,000) + a3 (15,000) +...
Design a 2-bit full adder. this circuit would have 5 inputs, two for the number A = (a1,a0), two for the number B = (b1,b0), and one for the carry-in Cin. It would also have three outputs, two for the sum bit S = (s1,s0) and one for the carry out Cout.
Design a 2-bit full adder. this circuit would have 5 inputs, two for the number A = (a1,a0), two for the number B = (b1,b0), and one for the carry-in Cin. It would also have three ouputs, two for the sum bit S = (s1,s0) and one for the carry out Cout.
PROBLEM STATEMENT The mini-calculator will use a small ALU to perform arithmetic operations on two 4-bit values which are set using switches. The ALU operations described below are implemented with an Adder/Subtractor component. A pushbutton input allows the current arithmetic result to be saved. An upgraded mini-calculator allows the saved value to be used in place of B as one of the operands. The small ALU that you will design will use the 4-bit adder myadder4 to do several possible...