Materials on the Exam Introduction Data Representation in Computer Systems Boolean Algebra Digital Logic MARIE: An Introduction to a Simple Computer Until.

Slides:



Advertisements
Similar presentations
Combinational Circuits
Advertisements

ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
التصميم المنطقي Second Course
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Computing Machinery Chapter 5: Sequential Circuits.
©Brooks/Cole, 2003 Chapter 4 Operations on Bits. ©Brooks/Cole, 2003 Apply arithmetic operations on bits when the integer is represented in two’s complement.
ECE 2373 Modern Digital System Design Exam 2. ECE 2372 Exam 2 Thursday March 5 You may use two 8 ½” x 11” pages of information, front and back, write.
Chapter 4 Gates and Circuits.
Storage of Bits Computers represent information as patterns of bits
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Operations on data CHAPTER 4.
4 Operations On Data Foundations of Computer Science ã Cengage Learning.
CS 105 Digital Logic Design
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Analyzing our example circuit
Boolean Algebra and Digital Logic
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Chapter 4 The Building Blocks: Binary Numbers, Boolean Logic, and Gates.
Chap 4. Sequential Circuits
Dr. Ahmed El-Bialy, Dr. Sahar Fawzy Combinational Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Lecture 1 Binary Representation Topics Terminology Base 10, Hex, binary Fractions Base-r to decimal Unsigned Integers Signed magnitude Two’s complement.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
1 Lecture 3 ENGRE 254 1/14/09. 2 Lecture 1 review Digital signals assume two values represented by “0” and “1”. Typically a “0” represents a voltage near.
©Brooks/Cole, 2003 Chapter 4 Operations on Bits. ©Brooks/Cole, 2003 Apply arithmetic operations on bits when the integer is represented in two’s complement.
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO
1 Digital Logic Design Week 5&6 cont’d Revision for Quiz 2/Exam.
Logic Gates M. AL-Towaileb1. Introduction Boolean algebra is used to model the circuitry of electronic devices. Each input and each output of such a device.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Chapter 4 Operations on Bits. Apply arithmetic operations on bits when the integer is represented in two’s complement. Apply logical operations on bits.
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
Chapter 4 Operations on Bits. Apply arithmetic operations on bits when the integer is represented in two’s complement. Apply logical operations on bits.
IKI b-Analysis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: CS231’s Lecture Notes at.
Sequential circuit analysis1 Sequential Circuit Analysis Last time we started talking about latches and flip-flops, which are basic one-bit memory units.
WORKING PRINCIPLE OF DIGITAL LOGIC
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
COMBINATIONAL AND SEQUENTIAL CIRCUITS Guided By: Prof. P. B. Swadas Prepared By: BIRLA VISHVAKARMA MAHAVDYALAYA.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
©2010 Cengage Learning SLIDES FOR CHAPTER 4 APPLICATIONS OF BOOLEAN ALGEBRA MINTERM AND MAXTERM EXPANSIONS Click the mouse to move to the next page. Use.
1 Lecture #15 EGR 277 – Digital Logic Reading Assignment: Chapter 5 in Digital Design, 3 rd Edition by Mano Example: (Problem 5-17 from Digital Design,
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Unit 1 Introduction Number Systems and Conversion.
Prof. Sin-Min Lee Department of Computer Science
Logic Gates and Boolean Algebra
Chapter 4 Operations on Bits.
Combinational Logic Circuits
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
XOR, XNOR, and Binary Adders
Reading: Hambley Chapters
Digital Design Fundamentals
Boolean Algebra and Digital Logic
XOR, XNOR, & Binary Adders
GCSE Computer Science – Logic Gates & Boolean Expressions
Combinational Circuits
XOR, XNOR, and Binary Adders
XOR, XNOR, and Binary Adders
Chapter 1 (Part c) Digital Systems and Binary Numbers
靜夜思 床前明月光, 疑是地上霜。 舉頭望明月, 低頭思故鄉。 ~ 李白 李商隱.
Presentation transcript:

Materials on the Exam Introduction Data Representation in Computer Systems Boolean Algebra Digital Logic MARIE: An Introduction to a Simple Computer Until first of Page 193.

Introduction Please go through the chapter’s one slide

Data Representation in Computer Systems This is Chapter 2 Concentrate on solving all the examples

Signed Binary Numbers Although there is only one way to represent +9, there are three different ways to represent (-9) In signed-magnitude representation In signed-1’sComplement representation In signed-2’sComplement representation

In signed-magnitude representation The Addition of two numbers in the signed- magnitude system follows the rules of ordinary arithmetic sign. If the signs are the same, we add the two magnitudes and give the sum the common sign. If the signs are different, we subtract the smaller magnitude from the larger and give the result the sign of the larger magnitude

One’s Complement To understand the Ones Complement Mathematics, you should solve the examples on page 53

Two Complement Solve the examples on page 55,56 Important Rule on page 55 in Bold sentence. To understand this rule, please go through a table on page 63 table 2.2. very important

T/F question Typical T/F question in the exam as follows When a carry occurs during the arithmetic operation this means an overflow is occurred T/F Adding +4 to +6 in four bit binary system will result in overflow T/F 3 bits for magnitude and 1 bit for sign this result in overflow and the result is error To answer this question you have to know the rules for overflow

Floating Point Representation 14 bit model See page 63,64,65 The idea of adding Floating point is the same idea in normal mathematics (unify the exponent)

Boolean Algebra It’s all about AND, OR, Not You should know the truth table for them page 111 You have to know that before designing a circuit you have to make mathematical model for it. As your model is simple, your circuit will be simple also and less cost

Figure Simple Model Floating-Point Representation Boolean Algebra To simplify the models (Boolean Algebra) Use the table 3.5 page 113 Study the examples on page 114,115 See the logic gates symbols at page 119 You can design simple circuits as in page 120 You should know XOR exclusive, you have to make a truth table

XOR Gate

Boolean Algebra Study the pages of 124,125

Designing a Circuit The first point for designing a digital circuit are Describe your input, all combinations Determine the out put, could be one ore more Then construct the truth table Simplify the output using algebra simplification (this step is only to simplify the design)

Binary n-to-2 n Decoders A binary decoder has n inputs and 2 n outputs. Only one output is active at any one time, corresponding to the input value

2-to-4 Binary Decoder A 2 to 4 decoder consists of two inputs and four outputs, truth table and symbols of which is shown below

2-to-4 Binary Decoder Truth Table2 to 4 decoder

2-to-4 Binary Decoder

Q28 Find Truth Table

Flip-Flops All the digital circuits we studied in the past are called combinational circuits, the following circuits are called sequential circuits and they used a lock to operate. And they consider the main unit of memory design.

Flip-Flops SR-flip flop on page 133

Figure a) Actual SR Flip-Flop b) Characteristic Table for the SR Flip-Flop See Characteristic table figure 3.21 (b) page 133 SR-flip flip

Figure a) D Flip-Flop b) D Flip-Flop Characteristic Table c) D Flip-Flop as a Modified SR Flip-Flop D-flip flop

Figure a) JK Flip-Flop b) JK Characteristic Table c) JK Flip-Flop as a Modified SR Flip-Flop JK flip-flop

Mealy Model Mealy machine’s outputs are a function of it’s current state and it’s input We will see an example on D flip flop

Analyze this sircuit

The Solution First we have to write the equations 1.A(t+1)=Ax+BX 2.B(t+1)=A`x 3.Y=(A+B)X Second :draw the state table base on the equations you have

State Table

Second Form of state table

State Diagram

Q41 Complete the truth table

Q41 complete the truth table ABXA(t+1)B(t+1) 000?? 001?? 010?? 011?? 100?? 101?? 110?? 111??

Q41 /solution JA=(A+X)` =A`X` ;;;; KA=JA B=AB` ABXJAKAD

Q41 solution ABXJAKADA(t+1)B(t+1)