Question: The task is to design a structural comparator for signed and unsigned number and then to write a complete code for verification. You should search
The task is to design a structural comparator for signed and unsigned number and then to write a complete code for verification. You should search for information about the needed logiccircuits to implement a comparator for signed and unsigned numbers.
The Task:
Your task is to structurally create a comparator for signed numbers s complement representation and unsigned numbers. The circuit will have the following main inputs and outputs
First number A: bits
Second number B: bits
Selection S: bit to select how to consider the numbers signed or unsigned and thus how comparator will work
First output Equal : will produce if AB
Second output Greater: will produce if AB
Third output Smaller: will produce if A B
The Comparator is to be built structurally from a library of gates, which contains the following devices:
GateID
Delay ns
INV
NAND
NOR
AND
OR
XNOR
XOR
Your UDP Max inputs
All combinational parts of your design should be built structurally from these basic gates and the defined delays consider that the delay will not change even if the gate has more than inputs
After that registers should be added to the inputsoutputs of the circuit to make the circuit synchronous thus we need to add more inputs such as clk
You should determine the maximum latency of the comparator. And therefore, what is the maximum frequency of the clock that can be applied to the registers. You should verify that your system is working for all possible values of the inputs. Also, you should introduce an error in your design and to do a verification that will discover the error and write it to the console screen.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
