You are on page 1of 1

An-Najah National University

Department of Computer Engineering


Digital Circuits Design I
Assignment # 1 (ILO 2)
A Simple Calculator

Using Multisim Workbench, design a 4-bit-by-4-bit (A and B) simple calculator, as shown in


the figure:

The calculator performs addition, subtraction, absolute and comparison operations


according to the values of the select lines (Co to C3). The following table shows these
operations:
C2
0
0
0
0
1

C1
0
0
1
1
x

Co
0
1
0
1
x

F
A+B
AB
|A|
|B|
Compare A with B*

The calculator output F should be displayed in decimal signed-magnitude notation using the
three 7-segment LEDs: the negative sign 7-segment display for negative results, and the two
other LEDs to display the 2-digit decimal magnitude.
* The comparison operation displays A on the middle display if A is greater than B. On the
other hand, it displays B if B is greater than A. Else it displays = if both are equal.
Deadline: Sunday 10/04/2016
Good Luck

You might also like