Question: 8 - bit Comparison Operations You should build your own comparator that check the operands bit - by - bit, and not rely on builtin
bit Comparison Operations
You should build your own comparator that check the operands bitbybit, and not rely on builtin operators in Verilog, or you can subtract the numbers and decide, but be careful with overflow cases.
tableOP#Control Signals COperationMinimum of A and BMaximum of A and B
Bit Arithmetic and Logic Unit ALU Design
We would like to design an bit arithmetic and logic unit ALU that takes two inputs A and twos complement numbers each of size bits and that performs the following operations depending on the values of a control signal C bits
Arithmetic Operations
Addition and subtraction are supposed to be done for two's complement numbers.
You should only build a Two's complement adder and use it for all operations Operations # ###
The result of these operations, Result, is an bit vector.
Also, add a carry out signal, Cout.
tableOP#Control Signals COperationA plus BIncrement A by A minus BDecrement A by
bit Comparison Operations
You should build your ownrcomparator that check the operands bitbybit, and not rely on builtin operators in Verilog, or you can subtract the numbers and decide, but be careful with overflow cases.
tableOP#Control Signals COperationMinimum of A and
BMaximum of A and B
Testing:
You should implement a testbench that tests the circuit as follows:
For operations # to # use the following numbers:
A B
A B
A B
A B
A B
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
