1 Design of Networks for Arithmetic Operations 2004.1.9 Kim jung kil.

Slides:



Advertisements
Similar presentations
ECE2030 Introduction to Computer Engineering Lecture 13: Building Blocks for Combinational Logic (4) Shifters, Multipliers Prof. Hsien-Hsin Sean Lee School.
Advertisements

Registers and Counters
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapters 4 – Part3: Verilog – Part 1.
Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
1 EE24C Digital Electronics Project Theory: Sequential Logic (part 2)
Floating-Point Arithmetic ELEC 418 Advanced Digital Systems Dr. Ron Hayne Images Courtesy of Thomson Engineering.
1 Counter with Parallel Load Up-counter that can be loaded with external value –Designed using 2x1 mux – ld input selects incremented value or external.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
Binary Addition. Binary Addition (1) Binary Addition (2)
Nonlinear & Neural Networks LAB. CHAPTER 20 VHDL FOR DIGITAL SYSYEM DESIGN 20.1VHDL Code for a Serial Adder 20.2VHDL Code for a Binary Multiplier 20.3VHDL.
Fall 2005 L15: Combinational Circuits Lecture 15: Combinational Circuits Complete logic functions Some combinational logic functions –Half adders –Adders.
1 COMP541 Sequencing and Control Montek Singh Mar 29, 2007.
Fall 2007 L15: Combinational Circuits Lecture 15: Combinational Circuits Complete logic functions Some combinational logic functions –Half adders –Adders.
Chapter 7. Register Transfer and Computer Operations
CS 140 Lecture 18 Professor CK Cheng 6/04/02. Part IV. System Designs Algorithm: { Input X, Y type bit-vector, start type boolean; Local-Object A, B type.
Contemporary Logic Design Arithmetic Circuits © R.H. Katz Lecture #24: Arithmetic Circuits -1 Arithmetic Circuits (Part II) Randy H. Katz University of.
SM Charts and Microprogramming
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
©2004 Brooks/Cole FIGURES FOR CHAPTER 18 CIRCUITS FOR ARITHMETIC OPERATIONS Click the mouse to move to the next page. Use the ESC key to exit this chapter.
Binary Addition Addition Rules: = = = = = carry 1 1 carry 1 Example 1: Example 2:
Binary Arithmetic Stephen Boyd March 14, Two's Complement Most significant bit represents sign. 0 = positive 1 = negative Positive numbers behave.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Combinational Circuit – Arithmetic Circuit
Topic: Arithmetic Circuits Course: Digital Systems Slide no. 1 Chapter # 5: Arithmetic Circuits.
Multiplication of signed-operands
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
ENG241 Digital Design Week #8 Registers and Counters.
EE5393, Circuits, Computation, and Biology Computing with Probabilities 1,1,0,0,0,0,1,0 1,1,0,1,0,1,1,1 1,1,0,0,1,0,1,0 a = 6/8 c = 3/8 b = 4/8.
Counters - II. Outline  Synchronous (Parallel) Counters  Up/Down Synchronous Counters  Designing Synchronous Counters  Decoding A Counter  Counters.
Design Examples ELEC 418 Advanced Digital Systems Dr. Ron Hayne Images Courtesy of Thomson Engineering.
ARITHMETIC MICRO OPERATIONS
Digital Logic Design (CSNB163)
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
Department of Communication Engineering, NCTU 1 Unit 4 Arithmetic and Logic Units.
CPEN Digital System Design
Digital Electronics Tutorial: Number System & Arithmetic Circuits Solutions.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
COMPUTER ARITHMETIC Arithmetic with Signed-2's Complement Numbers
George Mason University Class Exercise 1B. 2ECE 448 – FPGA and ASIC Design with VHDL Rules If you believe that you know a correct answer, please raise.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
Digital Design with SM Charts
CSE 140 Lecture 15 System Design II CK Cheng CSE Dept. UC San Diego 1.
SERIAL MULTIPLIER Part 1
Multiplication of Integers
Multiplication and Division basics
CHAPTER 18 Circuits for Arithmetic Operations
Array multiplier TU/e Processor Design 5Z032.
Lecture 16 Arithmetic Circuits
Arithmetic and Logic Units
Reference: Moris Mano 4th Edition Chapter 4
Principles & Applications
Digital System Design Review.
ECE 434 Advanced Digital System L13
ECE 434 Advanced Digital System L12
CPE/EE 422/522 Advanced Logic Design L15
Multiprocessor & Multicomputer
Number Systems and Circuits for Addition
3-bit calculator using 7-segment LEDs
FIGURE 1: SERIAL ADDER BLOCK DIAGRAM
ECE 434 Advanced Digital System L11
Figure 8.1. The general form of a sequential circuit.
Booth's Algorithm for 2's Complement Multiplication
XOR Function Logic Symbol  Description  Truth Table 
CHAPTER 18 Circuits for Arithmetic Operations
Half & Full Subtractor Half Subtractor Full Subtractor.
Design of Networks for Arithmetic Operation
Forward Design by state transition table, and state graph
Half & Full Subtractor Half Subtractor Full Subtractor.
System Controller Approach
Presentation transcript:

1 Design of Networks for Arithmetic Operations Kim jung kil

2 순서 Simple serial adder State graphs Design of binary multiplier Design of signed binary multiplier

3

4 Control State of Serial Adder

5 State Graphs for Control Networks X i X J /Z p Z q this means if inputs X i, X j are 1 (others : don't care), outputs Z p,,Z q are 1( others : 0 ) SkSk SpSp SqSq X1X1 X1'X2'X1'X2' X1'X2X1'X2 (X 1 ) (X 1 ' X 2 ) = 0 X 1 + X 1 ' X 2 ' + X 1 ' X 2 = 1

6 Design of a Binary Multiplier

7 Block Diagram for Binary Multiplier

8 Multiplication example

9 State Diagram of Binary Multiplier S9 S8 S6 S7 S5 S3 S1 S2 S4 S0 St ' /0 St/Load M/Ad _/Sh M ' /Sh _/Done

10 begin process begin wait until Clk= '1'; case state is when 0=> if St='1' then ACC(8 downto 4) <= "00000:; ACC(3 downto 0); <= Mplier; State <= 1; end if; when 1|3|5|7 => if M='1' then ACC(8 downto 4) <= add4(ACC(7 downto 4),Mcand,'0'); State = State +1; else ACC <= '0' & ACC(8 downto 1); State <= State + 2; end if;

11 when 2|4|6|8 => ACC <= '0' & ACC(8 downto 1); State <= State + 2;; when 9 => State <= 0; end case; end process; Done <= '1' when State = 9 else '0'; end behave1;

12 Counter 를 이용한 설계

13 State Graph for add-shift control

14 Design of Signed Multiplier (+7/8) X (+5/8) (0.00)0111 (+7/64) (0.)0111 (+7/16) (+35/64) (+5/8) X (-3/8) (0.00)0101 (+5/64) (0.)0101 (+5/16) (0.) (-5/8) (-15/64) (-3/8) X (+5/8) (1.11)1101 (-3/64) (1.)1101 (-3/16) (-15/64) (-3/8) X (-3/8) (1.11)1101 (-3/64) (1.)1101 (-3/16) (+3.8) (+9/64)

15 Block Diagram for Signed Multiplier A(accumulator)B CONTROLCONTROL Load Sh Ad Done St Cm multiplier multiplicand M product 4-bit full adder C in 1's complementer Cm

16 State Diagram of Signed multiplier S0 S5 S4 S1 S2 S3 St'/0 St/Load M/AdSh M'/Sh M/CmAdSh M'/Sh M/AdSh M'/Sh M/AdSh M'/Sh _/Done

17 2’s Complement multiplier Begin process variable addout : bit_vector(4 downto 0); begin wait until Clk= '1'; case State is when 0=> if St='1' then A <= "0000"; B <= Mplier; State <= 1; end if

18 2’s Complement multiplier( 계속 ) when 1|2|3 => if M= '1' then addout := add4(A,Mcand,'0'); A<=Mcand(3) & addout(3 downto 1); B<=addout(0) & B(3 downto 1); else A<=A(3) & A(3 downto 1); B<=A(0) & B(3 downto 1); end if; State <= State +1;

19 2’s Complement multiplier when 4 => if M='1' then addout := add4(A,not Mcand,'1'); A<=not Mcand(3) & addout(3 downto 1); B<=addout(0) & B(3 downto 1); else A<=A(3) & A(3 downto 1); B<=A(0) & B(3 downto 1); end if; State <= 5; when 5 => State <= 0; Done <= '0';

20 End Q/A