XMLDTD Transparency No. 1 Java Programming assignment 1 Cheng-Chia Chen.

Slides:



Advertisements
Similar presentations
Cs 121 Ch 4-2 Combinational Logic
Advertisements

Kuliah Rangkaian Digital Kuliah 7: Unit Aritmatika
SYEN 3330 Digital SystemsJung H. Kim Chapter5-1 1 SYEN 3330 Digital Systems Chapter 5 – Part 1.
Lecture Adders Half adder.
Binary Addition Rules Adding Binary Numbers = = 1
Binary Addition. Binary Addition (1) Binary Addition (2)
Henry Hexmoor1 Chapter 5 Arithmetic Functions Arithmetic functions –Operate on binary vectors –Use the same subfunction in each bit position Can design.
Lecture 9 Sept 28 Chapter 3 Arithmetic for Computers.
L10 – Multiplication Division 1 Comp 411 – Fall /19/2009 Binary Multipliers ×
Design of Arithmetic Circuits – Adders, Subtractors, BCD adders
Homework Reading Machine Projects Labs
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
ENGIN112 L14: Binary Adder Subtractor October 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 14 Binary Adders and Subtractors.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 4 – Arithmetic Functions Logic and Computer.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Adders, subtractors, ALUs
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
CS 105 Digital Logic Design
Adders and Multipliers Review. ARITHMETIC CIRCUITS Is a combinational circuit that performs arithmetic operations, e.g. –Addition –Subtraction –Multiplication.
Combinational Logic Design
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Combinational Logic Chapter 4.
Logical Circuit Design Week 8: Arithmetic Circuits Mentor Hamiti, MSc Office ,
ADDERS Half Adders Recall that the basic rules of binary addition are as indicated below in Table 2-9. A circuit known as the half-adder carries out these.
Chapter 4 – Arithmetic Functions and HDLs Logic and Computer Design Fundamentals.
Fall 2004EE 3563 Digital Systems Design EE 3563 Comparators  Comparators determine if two binary inputs are equal  Some will signal greater than/less.
WEEK #10 FUNCTIONS OF COMBINATIONAL LOGIC (ADDERS)
Figure 5.1. Conversion from decimal to binary.. Table 5.1. Numbers in different systems.
Figure 5.1. Conversion from decimal to binary.. Table 5.1. Numbers in different systems.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Adders, subtractors, ALUs.
CSE 241 Computer Organization Lecture # 9 Ch. 4 Computer Arithmetic Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
– Digital Circuit 1 Choopan Rattanapoka
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 5 Digital Building Blocks.
Computer Architecture, The Arithmetic/Logic UnitSlide 1 Part III The Arithmetic/Logic Unit.
Arithmetic Functions BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
CHAPTER 4 Combinational Logic Design- Arithmetic Operation (Section 4.6&4.9)
COE 202: Digital Logic Design Combinational Circuits Part 2 KFUPM Courtesy of Dr. Ahmad Almulhem.
Computer Organization Department of CSE, SSE Mukka Chapter 6 : ARITHMETIC | Website for students | VTU NOTES.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
1 CS 151: Digital Design Chapter 4: Arithmetic Functions and Circuits 4-1,2: Iterative Combinational Circuits and Binary Adders.
Logic and computers 2/6/12. Binary Arithmetic /6/ Only two digits: the bits 0 and 1 (Think: 0 = F, 1.
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
Digital Design Module –II Adders Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
Computing Machinery Chapter 3: Combinational Circuits.
Combinational Logic Design
CS 151: Digital Design Chapter 4: Arithmetic Functions and Circuits
CPEN Digital System Design
CEC 220 Digital Circuit Design
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
1 ECE 545—Digital System Design with VHDL Lecture 1 Digital Logic Refresher Part A – Combinational Logic Building Blocks.
1 Lecture 14 Binary Adders and Subtractors. 2 Overview °Addition and subtraction of binary data is fundamental Need to determine hardware implementation.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Adders,subtractors, ALUs.
CS151 Introduction to Digital Design Chapter 4: Arithmetic Functions and HDLs 4-1: Iterative Combinational Circuits 4-2: Binary Adders 1Created by: Ms.Amany.
Arithmetic Circuits I. 2 Iterative Combinational Circuits Like a hierachy, except functional blocks per bit.
1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
ECE 4110– Sequential Logic Design
Combinational Circuits
Reference: Moris Mano 4th Edition Chapter 4
Principles & Applications
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
12/7/
Number Systems and Circuits for Addition
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
DIGITAL ELECTRONICS B.SC FY
XOR Function Logic Symbol  Description  Truth Table 
LOGIC Circuits.
ECE 3130 Digital Electronics and Design
Adder Circuits By: Asst Lec. Basma Nazar
Half & Full Subtractor Half Subtractor Full Subtractor.
Half & Full Subtractor Half Subtractor Full Subtractor.
Presentation transcript:

XMLDTD Transparency No. 1 Java Programming assignment 1 Cheng-Chia Chen

XML DTD Transparency No. 2 ToDo works 1. Implement FA1 ( 1-bit full adder) 2. Implement FA8 ( 8-bit full adder) 3. Implement FS1 (1-bit full subtractor ) 4. Implement FS8 (b-bit full subtractor ) 5. Implement Multiplier8 ( 8-bit x 8-bit multiplication) 6. Implement Divider8 (8-bit by 8-bit division + remainder)

XML DTD Transparency No. 3 Full-Adder

XML DTD Transparency No. 4 The Binary Adder

XML DTD Transparency No. 5 The n-bit Ripple-Carry Adder : FAn

XML DTD Transparency No. 6 The Binary Multiplication

XML DTD Transparency No. 7 The Array Multiplier

XML DTD Transparency No. 8 Multiplier4 FA4 DeMUX A 0..A 3 B0B0 DeMUX A 0..A 3 B1B1 DeMUX A 0..A 3 B2B2 DeMUX A 0..A 3 B3B3 FA m7m7 m5m5 m6m6 m0m0 m4m4 m3m3 m2m2 m1m1

XML DTD Transparency No. 9 Subtracter Subtracter circuits take two binary numbers as input and subtract one binary number input with other binary number input. Similar to to adders it gives out two output, difference and borrow (Carry in the case of Adder). There are two types of subtracters. Half Subtracter. Full Subtracter.

XML DTD Transparency No. 10 Half Substractor IO relations: D = X (~Y) \/ (~X) Y Bout = (~X) Y

XML DTD Transparency No. 11 Full Subtractor Symbol: D = (X xor Y) xor Bin Bout = X'.Y + X'.Bin + Y.Bin

XML DTD Transparency No. 12 Full substrator : implementations

XML DTD Transparency No. 13 Parallel binary n-bit substrator

XML DTD Transparency No. 14 Divider How division is computed ? Ex: / = ? | | |zzzzz remainder quotient

XML DTD Transparency No. 15 The rules for divider4 A 0..A 3 / B 1..B 3 = Q 0..Q 3 -- R 0.. R 3 1. T 0 = zzzA 0 2. if (T 0 Q 0 = 0; T 1 = T 0 A 1 ; else => Q 0 = 1; T 1 = (T 0 -B) A 1 ; 3. if (T 1 Q 1 = 0; T 2 = T 1 A 2 ; else => Q 1 = 1; T 2 = (T 1 -B) A 2 ; … if T k Q k = 0; T k+1 = T k A k+1 ; else Q k = 1; T k+1 = (T k -B) A k+1 ; if T 3 Q 3 = 0; R 4 = T 3 ; else Q 3 = 1; R 4 = (T 3 -B);

XML DTD Transparency No. 16 The building block M4 for divider4 T k – BDeMUX T k - S < B S TkTk B TkTk D0D0 QkQk T k+1 TkTk B A k+1

XML DTD Transparency No. 17 Divider4 M4 B[0:3] 000A 0 A1A1 M4 B[0:3] M4 B[0:3] A2A2 M4 B[0:3] A3A3 Q0Q0 Q1Q1 Q2Q2 Q3Q3 X R 0..R 3

XML DTD Transparency No. 18 References: chapter 11.