Prove the followings--
-
4-bit composite circuit for unsigned integers, taught in the class, gives correct result.
-
4-bit composite circuit for signed integers, taught in the class, gives correct result.
Overflow Detection:
How can overflow be detected when--
-
adding unsigned integers using a 4-bit adder constructed only from full adders?
-
subtracting unsigned integers using a 4-bit adder circuit constructed using
full subtractors?
-
subtracting unsigned integers using a 4-bit adder circuit constructed from
full adders?
-
performing addition and subtraction of unsigned integers in a 4-bit composite circuit
implemented using full adders?
-
performing addition and subtraction of signed integers in a 4-bit composite circuit
implemented using full adders?
logic circuit Design
-
Design a logic circuit for the division algorithm for signed integers. Assume inputs are 8-bit long, and a register memory can be 16 bit long.
C Programming Question
Suppose you are allowed to use only the <stdio.h> library.
You are allowed to perform basic operations only and are not allowed to copy exact values from any external source.
Write a C program to print the following:
-
The largest and smallest values of unsigned int and int variables.
-
The largest and smallest positive values of a float variable.
-
The largest and smallest negative values of a float variable.