Design create a Truth Table for a twobit adder that can add
Design (create a Truth Table for) a two-bit adder that can add two, 2-bit, 2\'s complement values (X1, X0, and Y1, Y0) and produce the two-bit result (Z1, Z0) as well as the associated Final Carry Out bit (C) and a fourth output that indicates whether the answer is valid or not valid (i.e., has there been overflow) (V) All signals are active high. Make wire that your Truth Table is correct - it will be used for a large number of exam points Draw a block diagram for this device and label all inputs and outputs Use Reduced POS approach to create the equation for Z1 Use a Reduce SOP approach to create the equation for Z0 Implement your design for V using a Maxterm Equation Implement your design for C using a Minterm Equation Generate an equation that allows for direct implementation of Z0 using just NOR gates
Solution
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
if(a[i]>0)
if(d[i]>0)
printf(\" + \");
else if(d[i]<0)
printf(\" - \");
else
printf(\" \");
printf(\"%dx^%d\",d[i],i-1);
}
getch();
}
#include <stdio.h>
#include <stdlib.h>
typedef struct polynomial Polynomial;
void init_poly(Polynomial *p)
void print_poly(Polynomial *p)
p->coefficient[p->order--] = 0;
}
void r_print_differential_poly(Polynomial *p)
}
int main(void)
