EKT 221 : DIGITAL 2.

Slides:



Advertisements
Similar presentations
1ASM Algorithmic State Machines (ASM) part 1. ASM2 Algorithmic State Machine (ASM) ‏ Our design methodologies do not scale well to real-world problems.
Advertisements

Registers and Counters
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
EKT 221 : Digital 2 ASM.
Overview Datapath and Control Algorithmic State Machines (ASM)
Chapter 8 Sequencing and Control Henry Hexmoor1. 2 Datapath versus Control unit  Datapath - performs data transfer and processing operations  Control.
The Control Unit: Sequencing the Processor Control Unit: –provides control signals that activate the various microoperations in the datapath the select.
1 COMP541 Sequencing and Control Montek Singh Mar 29, 2007.
Ch 8 - Control Unit and Algorithmic State Machines
Contemporary Logic Design Arithmetic Circuits © R.H. Katz Lecture #24: Arithmetic Circuits -1 Arithmetic Circuits (Part II) Randy H. Katz University of.
Chapter 7 - Part 2 1 CPEN Digital System Design Chapter 7 – Registers and Register Transfers Part 2 – Counters, Register Cells, Buses, & Serial Operations.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 20 Datapath and Control Datapath - performs data transfer and processing operations.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
KU College of Engineering Elec 204: Digital Systems Design
Registers and Counters
CoE3DJ4 Digital Systems Design Register transfers, sequencing and control (from chapters 7 and 8 of Mano and Kime)
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 21 Multiplier Example Example: (101 x 011) Base 2 Note that the partial product summation.
Chap 8. Sequencing and Control. 8.1 Introduction Binary information in a digital computer –data manipulated in a datapath with ALUs, registers, multiplexers,
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Register Transfer Level & Design with ASM
Abdullah Said Alkalbani University of Buraimi
Combinational Circuits
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
EKT 221/4 DIGITAL ELECTRONICS II Chapter 2 SEQUENCING AND CONTROL.
EKT 221 : Chapter 4 Computer Design Basics
Datapath - performs data transfer and processing operations The control unit sends: – Control signals – Control outputs The control unit receives: – External.
Registers and Counters
EKT 221 : Digital 2 Serial Transfers & Microoperations Date : Lecture : 2 hr.
Digital Electronics.
C OMPUTER A RITHMETIC. I NTRODUCTION A processor has an separate unit that is known as ALU that executes arithmetic operations. Negative numbers may be.
Design at the Register Transfer Level Algorithmic State Machines 07.
 Designing CU – One FF per State Method  5 Transformation Rules  Transformation Process  Microprogrammed Control Unit.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
REGISTER TRANSFER AND MICROOPERATIONS
SERIAL MULTIPLIER Part 1
CHAPTER 18 Circuits for Arithmetic Operations
EKT 221 : Digital 2 Serial Transfers & Microoperations
Question 8.18 (page 397) Design a digital system that multiplies two unsigned binary numbers by the repeated addition method. For example, to multiply.
REGISTER TRANSFER AND MICROOPERATIONS
Chapter 4 Register Transfer and Microoperations
Chap 7. Register Transfers and Datapaths
EKT 221 : Digital 2 Serial Transfers & Microoperations
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
EKT 221 : Digital 2 COUNTERS.
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
Basics of digital systems
Lecture 16 Arithmetic Circuits
Multipliers Multipliers play an important role in today’s digital signal processing and various other applications. The common multiplication method is.
Principles & Applications
Digital System Design Review.
Registers and Counters
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
KU College of Engineering Elec 204: Digital Systems Design
Overview Datapath and Control Algorithmic State Machines (ASM)
ECE 434 Advanced Digital System L13
به نام یگانه مهندس هستی معماری کامپیوتر مهدی قدیری
ENG2410 Digital Design “Sequencing and Control Examples”
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
REGISTER TRANSFER LEVEL (RTL) DESIGN Using ASM CHART
FIGURE 1: SERIAL ADDER BLOCK DIAGRAM
KU College of Engineering Elec 204: Digital Systems Design
CHAPTER 18 Circuits for Arithmetic Operations
Instruction execution and ALU
Computer Architecture
Presentation transcript:

EKT 221 : DIGITAL 2

ASM : Binary Multiplier Example Multiplicand Multiplier Note that the partial product summation for n digits, base 2 numbers requires adding up to n digits (with carries) in a column. Partial Products are: 101 x 1 101 x 0 Note also n x m digit multiply generates up to an m + n digit result (same as decimal).

ASM : Binary Multiplier Example Multiplier (Q) Multiplicand (B) 1 1 1 1 0 0 0 + 1 0 1 1 0 1 1 x 101 = 1 0 1 MUL LSB with Multiplicand OR check if LSB = 1, if 1 then do addition ADDITION (A + B) SHIFT Right A Multiplier (Q) Multiplicand (B) 1 1 1 1 1 x 101 = 1 0 1 0 1 0 + 1 0 1 1 1 1 MUL LSB with Multiplicand OR check if LSB = 1, if 1 then do addition ADDITION (A+B) SHIFT Right A Multiplier (Q) Multiplicand (B) 1 1 1 1 1 0 x 101 = 0 0 0 MUL LSB with Multiplicand OR check if LSB = 1, if 0 then do not do Addition SHIFT Right 1 1 1 1 Product

ASM : Binary Multiplier Example Multiplier (Q) Multiplicand (B) 1 1 1 1 Multiplicand is loaded into Reg. B Multiplier is loaded into Reg. Q Reg. A is initially zero Parallel Adder is used to add Reg. A and Reg B C FF’s stores Cout of P.A C is Reset to 0 upon shift right Counter P is provided to count the cycle If P=0 then read result in Reg. A and Reg. Q. and processing stops. CU stays in initial state until G=1 In the initial state, Reg. A and FF C is reset to 0. After Shifting Right, Reg. A will send the content to P.A for next cycle. The LSB of Q is discarded. CU will check for signal Z and Q0. CU will decide to add/shift or shift based on this 2 signals. The control signal from the CU to the datapath activate the required microoperations Figure 8-6, Morris Mano, pg 371

Multiplier ASM Chart Three main states are employed: IDLE - state in which: the outputs of the prior multiply is held until Q is loaded with the new multiplicand input G is used as the condition for starting the multiplication, and C, A, and P are initialized MUL0 - state in which: conditional addition is performed based on the value of Q0. MUL1 - state in which: right shift is performed to capture the partial product and position the next bit of the multiplier in Q0 the terminal count of 0 for down counter P is used to sense completion or continuation of the multiply.

Multiplier ASM Chart Figure 8.7 : Morris Mano, pg 373

Analysis of ASM Chart ASM = IDLE and G=0, no action occurs Multiplication ONLY occurs when G=1. Moving to state MUL0, C & A are cleared to 0 and P is loaded with (n-1). In state MUL0, a decision is made based on Q0: Q0 = 1, B add to A, result transferred to A and Carry to C Q0 = 0, A & C unchanged. Note : Both condition will go to next state MUL1 A Shift Right is performed on the combined content of C, A and Q.

Analysis of ASM Chart….cont The shift transfer can be simplified to: C 0, C || A || Q sr C || A || Q || is called concatenation, meaning it is a composite register or register made up of other registers. Counter P is decremented in state MUL1. This illustrates a very IMPORTANT timing difference between a standard flowchart and an ASM chart. The decision on Z, which represent P=0, follows the register transfer statement that updates P in the ASM chart.

Hardware selection Identifying h/w is also important: Reg. A = Shift Reg with parallel load, with CLR enable to reset the reg. to “0”. Reg. Q = Shift Reg C FF’s = accept input from Cout, with CLR enable to reset the FF to “0”. Reg. B and Q = Parallel load Reg, used to load multiplier and multiplicand at the initial stage.

Alternate ASM Chart Figure 8.8 (a) & (b), Morris Mano, pg 375. Analyze the circuit. It reduces the state to just 2. (IDLE and MUL1 only) It utilizes the vector decision box. (READ YOURSELF and Understand)

QUIZ Reg A : 1110 Reg B : 1010 1 A3 A2 A1 A0 B3 B2 B1 B0 SUM (A+B) + Cin Cout Cin T0 1 T1 T2 T3 T4

Thank you