Group Assignment (Beng 1113)
Group Assignment (Beng 1113)
*********************************************************
Received by: (Miss Badariah) Lecturer Faculty of Electronics & Computer Engineering Universiti Teknikal Malaysia Melaka
TITLE:
Objectives
To understand and solve the binary arithmetic problems. To understand the basic rules of Boolean algebra. To determine logic circuits to implement Boolean functions. To minimize Boolean expression using Karnaugh Map (K- Map) . To construct logic circuit by using combination of logic gates. To be familiar with Multisim (a computer program which stimulate digital and analog circuits. To strengthen our knowledge related to digital system.
Equipment
Laptop equipped with Multism Software Reference Books ( Foundation of Electric and Electronic) Lecture Notes Calculator Stationaries
Theory
1. Truth Table A truth table is a mathematical table used in logicspecifically in connection with Boolean algebra, Boolean functions, and propositional calculusto compute the functional values of logical expressions on each of their functional arguments, that is, on each combination of values taken by their logical variables. In particular, truth tables can be used to tell whether a propositional expression is true for all legitimate input values, that is, logically valid. Practically, a truth table is composed of one column for each input variable (for example, A and B), and one final column for all of the possible results of the logical operation that the table is meant to represent (for example, A XOR B). Each row of the truth table therefore contains one possible configuration of the input variables (for instance, A=true B=false), and the result of the operation for those values. 2. Karnaugh Map (K-Map) The Karnaugh map (K-map for short), Maurice Karnaugh's 1953 refinement of Edward Veitch's 1952 Veitch diagram, is a method to simplify Boolean algebra expressions. The Karnaugh map reduces the need for extensive calculations by taking advantage of humans' pattern-recognition capability. It also permits the rapid identification and elimination of potential race conditions. The required Boolean results are transferred from a truth table onto a two-dimensional grid where the cells are ordered in Gray code, and each cell represents one combination of input conditions. Optimal groups of 1s or 0s are identified, which represent the terms of a canonical form of the logic in the original truth table. These terms can be used to write a minimal Boolean expression representing the required logic. Karnaugh maps are used to simplify real-world logic requirements so that they can be implemented using a minimum number of physical logic gates. A sum-of-products expression can always be implemented using AND gates feeding into an OR gate, and a product-of-sums expression leads to OR gates feeding an AND gate. Karnaugh maps can also be used to simplify logic expressions in software design. Boolean conditions, as used for example in conditional statements, can get very complicated, which makes the code difficult to read and to maintain. Once minimised, canonical sum-of-products and product-of-sums expressions can be implemented directly using AND and OR logic operators.
3. Boolean Algebras Boolean algebra was developed by George Boole in the 19th century in order to determine the truth or falsehood of logical prepositions. Boolean algebra has been especially successful in the Electronics and computing fields because it can be used to model binary systems and the resulting equations can easily be implemented using gates. Associative Rule : Associativity is the property of algebra that the order of evaluation of the terms is immaterial.
4. Digital Gates A logic gate is an idealized or physical device implementing a Boolean function, that is, it performs a logical operation on one or more logic inputs and produces a single logic output. Depending on the context, the term may refer to an ideal logic gate, one that has for instance zero rise time and unlimited fan-out, or it may refer to a non-ideal physical device[1] (see Ideal and real op-amps for comparison). Logic gates are primarily implemented using diodes or transistors acting as electronic switches, but can also be constructed using electromagnetic relays (relay logic), fluidic logic, pneumatic logic, optics, molecules, or even mechanical elements. With amplification, logic gates can be cascaded in the same way that Boolean functions can be composed, allowing the construction of a physical model of all of Boolean logic, and therefore, all of the algorithms and mathematics that can be described with Boolean logic.
Procedures
Overall Procedure : Throughout The Project 1) Firstly, we made a discussion between our group members in the library to find the solution for the tasks. 2) Based on the tasks , we planned the project and sketched the block diagram designing to an appropriate level of detail (truth table , K-Map , logic gates , etc) 3) We discussed and converted the Boolean expression into truth table. 4) Then , we constructed the truth table. Besides , the function is also minimized by using the K-Map. 5) The truth table is illustrated by using a combination of suitable logic gates. 6) We converted the decimal number into binary number to get the output of the converter. 7) Multisim is installed in order to design the required circuit. By using multisim , we simulated the design. 8) We monitored and controlled the Multisim , troubleshooting the design to meet the specification design. 9) In the same time , our group make some research on these tasks on the internet and reference books. We divided the tasks on finishing this report among our group members. After that , we discussed one more time for any correction on the report and to make sure that the report is complete , without any error. 10) Last but not least , we made our best preparation for the presentation.
Task 1:
- A combination of suitable logic gates is drawn due to the Boolean expression is given as follow:
- A truth table is drawn as shown in the result. - The output is verified by using Multisim software.
Task 2:
- A combination of suitable logic gates is drawn due to the Boolean expression is given as follow:
A truth table is drawn as shown in the result. Multisim software is used to ensure the output in truth table is accurately found. The result in truth table is simplified by using K-Map. Another combination of suitable logic gates is drawn according to the simplified function done by using K-Map. - The output is verified by using Multisim software.
Task 3:
- The decimal number given is converted to binary number by using scientific calculator. - A truth table is drawn as shown in the result to get the output stated as in the question. - A Boolean expression is constructed based on the truth table drawn. - The Boolean expression is simplified by using K-Map due to the original expression was complicated. - A combination of suitable logic gates is drawn followed the simplified function done by K-Map. - The output is verified by using Multisim software.
Results
Task 1: 1. The logic gates are drawn as in Attachment 1. 2. A truth table is constructed as follow: X 0 0 0 0 1 1 1 1 Y 0 0 1 1 0 0 1 1 z 0 1 0 1 0 1 0 1 F 0 0 0 1 0 0 1 1
Task 2: 1. The logic gates are drawn as in Attachment 2. 2. A truth table is constructed as follow: A 0 0 0 0 1 1 1 1 B 0 0 1 1 0 0 1 1 C 0 1 0 1 0 1 0 1 Y 1 1 1 1 0 1 0 0
3. The results get from the truth table is simplified by using K-Map as follow: AB 1 1 0 0 C 1 1 0 1
4. From the looping of the K-Map, we get the simplified expression as follow:
Task 3: 1. A group of decimal number is converted into binary number by using scientific calculator: Decimal Number 1 6 8 9 13 14 15 Binary Number 1 110 1000 1001 1101 1110 1111
2. A truth table is constructed according to the decimal number we wanted for the output. Prepositions [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] A 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 B 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 C 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 D 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Z 0 1 0 0 0 0 1 0 1 1 0 0 0 1 1 1
5. From the looping of the K-Map, We get the simplified expression as follow:
6. A simple logic gates circuit is drawn as in Attachment 4 followed the simplified expression as above.
Discussion
The results show that the arithmetic logic unit behaved as expected. There was frequent careless mistakes when simplify the expression in K-Map due to complicacy, but this can be avoided if do it with care. Beside this, there is some logical errors while getting the simplified expression from the K-Map while looping, this error can be avoided if never loop the same data twice. Nevertheless, mistaken wires connection while using Multisim but we avoid this mistakes by testing more than one times in Multisim.
Conclusion
Overall, the investigation was successful in meeting the objectives of designing an Arithmetic Logic circuit in order to demonstrate the methods of using Boolean algebra, Truth table, K-Map, and Multisim. This assignment also gave us the approach on how to manipulate various functions by using Arithmetic Logic Gate and we might able to invent in future by using these applications. Besides this, this assignment meet the most important objective where strengthen our knowledge related to digital system that in our syllabus. Practical can carry more understandable data compare with only scan through the theories through books. I hope that this assignment would help us in doing good in our final examination and apply every inch of knowledge in this assignment after step out from university.
References
Zahariah Binti Manap, Modul 9, Foundamental of Electric And Electronic, Penerbit Universiti,Utem, 2009. Lecture Note on BENG 1113 CHAP5Digital System. Extra Slide Note on K-Map and Multisim. http://en.wikibooks.org/wiki/Digital_Circuits/ Logic_ Operations http://www.facstaff.bucknell.edd/mastascu/elessonhtml/ logic/logical.html