SERIAL MULTIPLIER Part 1

Slides:



Advertisements
Similar presentations
Verilog Descriptions of Digital Systems
Advertisements

1ASM Algorithmic State Machines (ASM) part 1. ASM2 Algorithmic State Machine (ASM) ‏ Our design methodologies do not scale well to real-world problems.
Registers and Counters
Registers and Counters. Register Register is built with gates, but has memory. The only type of flip-flop required in this class – the D flip-flop – Has.
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
Shift Registers and Shift Register Counters
Chapter 7 - Part 2 1 CPEN Digital System Design Chapter 7 – Registers and Register Transfers Part 2 – Counters, Register Cells, Buses, & Serial Operations.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
CS 140L Lecture 4 Professor CK Cheng 10/22/02. 1)F-F 2)Shift register 3)Counter (Asynchronous) 4)Counter (Synchronous)
Sequential Circuit Introduction to Counter
KU College of Engineering Elec 204: Digital Systems Design
Registers and Counters
Adders and Multipliers Review. ARITHMETIC CIRCUITS Is a combinational circuit that performs arithmetic operations, e.g. –Addition –Subtraction –Multiplication.
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Rabie A. Ramadan Lecture 3
Using building blocks to make bigger circuits
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
ENG241 Digital Design Week #8 Registers and Counters.
REGISTER A register is a group of flip-flops. Each flip- flop is capable of storing one bit of informa­ tion. An n-bit register consists of a group of.
Shift Registers pp Shift Registers Capability to shift bits ♦ In one or both directions Why? ♦ Part of standard CPU instruction set ♦ Cheap.
CHAPTER 8 - COUNTER -.
Abdullah Said Alkalbani University of Buraimi
Anurag Dwivedi. Basic Block - Gates Gates -> Flip Flops.
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
EKT 221 : Digital 2 Serial Transfers & Microoperations Date : Lecture : 2 hr.
Counters Prepared by: Careene McCallum-Rodney. Introduction Counters uses a Toggle Flip Flops to count either UP or DOWN in binary. A toggle flip flop.
Cpu control.1 2/14 Datapath Components for Lab The Processor! ( th ed)
VHDL Project I: Serial Adder Matthew Murach Slides Available at:
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
EKT 221 : DIGITAL 2.
Dr. Clincy Professor of CS
EKT 221 : Digital 2 Serial Transfers & Microoperations
Registers and Counters
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Supplement on Verilog Sequential circuit examples: FSM
EKT 221 : Digital 2 Serial Transfers & Microoperations
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Sequential Circuit: Counter
Basics of digital systems
Lecture 16 Arithmetic Circuits
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.
Digital System Design Review.
Registers and Counters
Digital Fundamentals with PLD Programming Floyd Chapter 10
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.
אוגרים ומונים – Registers & Counters
Registers and Counters
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Verilog.
FIGURE 10.1 Rectangular‐shape graphic symbols for gates
ECE 3130 – Digital Electronics and Design
Chapter 1_5 register Cell Design
CHAPTER 4 COUNTER.
CS 140 Lecture 15 Sequential Modules
6. Registers and Counters
FIGURE 1: SERIAL ADDER BLOCK DIAGRAM
Supplement on Verilog Sequential circuit examples: FSM
Switching Theory and Logic Design Chapter 5:
Instructor: Alexander Stoytchev
Outline Registers Counters 5/11/2019.
Registers and Counters
Counters.
Presentation transcript:

SERIAL MULTIPLIER Part 1 Lab 5 Preview SERIAL MULTIPLIER Part 1

Objective To design the components of a Serial Multiplier, namely: A 4-bit Full Adder A Control Unit A Modulus-5 Counter A Shift Register

Part A A 4-bit Full Adder

How to start? Sketch the black box view of a 1-bit Full Adder. Design a 1-bit Full Adder (Or, you can also use the same one from your Lab 3 Multiplier). Symbol it.

4- bit FA Black Box View Cin A0 4 Bit Adder S0 A1 S1 A2 S2 A3 S3 B0 Cout

Design a 4-bit Full Adder (by cascading the previous 1-bit FA) Cin Sum Cout A0 A1 A2 A3 B3 B2 B1 B0 Cin Connections??!! Hints : Sum o/p from each FA is connected to your S o/p. Cout o/p is from your MSB Cout FA. Cin for each FA is from Cout of previous FA. S0 S1 S2 S3 Cout

Then… Create a default Symbol for your 4-bit FA. Simulate your design.

Simulation Requirements Your simulation is by adding 2 numbers (each is 4-bits wide) Fix your A input (Example : 10012 = 910) Vary your B input (0 to 15) Your simulation should add the number accordingly. 9+0= 0 9+1=10 9+2=11 9+3=12 9+4=13 …… 9+15=24

Part B A Control Unit

Control Unit State Diagram _ X 011 010 001 000 101 100 LOM = 1 LOD = 1 LO = 1 SHIFT = 1 READ = 1 Control Unit State Diagram If reset = 1  go to state 001 for all states. Only high outputs are shown for every state, the rest consider as ‘0’.

Control Unit Black Box View Inputs are: CLK, RESET and X. Outputs from FFs are: Q2, Q1 and Q0. Other outputs are: LOM, LO, LOD, SHIFT and READ. CONTROL UNIT

Control Unit State Table From the state diagram given, produce a State Table, using ___ flip-flop. 3-bits output with X as its control input.

Control Unit Block Diagram CLK D-FF Q2 Q0 Q1 LOM LO LOD READ SHIFT RESET X Connections!!?? Create as symbol Simulate your design Hints: LOM = High when Q2,Q1 and Q0 = 000 LO = High when Q2,Q1 and Q0 = 001 LOD = High when Q2,Q1 and Q0 = 010 SHIFT = High when Q2,Q1 and Q0 = 100 READ = High when Q2,Q1 and Q0 = 101

Control Unit Simulation Results Your simulation should look similar to this Input is clk, x and reset (predetermined by you) When x is 0 = Q(2..0) will count from 1 to 4 only When x is 1 = Q(2..0) will count from 1 to 5, and will stay at 5 until reset is = 1 LOM=High when Q(2..0) = 0 LOD=High when Q(2..0) = 1 LO = High when Q(2..0) = 2 SHIFT = High when Q(2..) = 4 READ = High when Q(2..0) = 5 and condition x=1

Part C A Modulus-5 Counter

Modulus-5 Counter State Diagram If reset = 1  go to state 001 for all states. Only high outputs are shown for every state, the rest consider as ‘0’.

Modulus-5 Counter Black Box View Inputs: CLK and RESET Outputs: Y0, Y1, Y2 (from FFs) and X. MODULUS-5 COUNTER

Modulus-5 Counter State Table From the state diagram given, produce a State Table, using ___ flip-flop. This counter will count from 0,1,2,3,4 and stays at 4 until reset is HIGH. Once Reset is HIGH it will count back from 0. X is the output to drive your X input of the Control Unit. X is HIGH when counter is at 4 (100).

Modulus-5 Counter Block Diagram CLK TFF Y0 Y0 RESET Y1 Y2 TFF X Y1 Connections!!?? Create as symbol Simulate your design Hints : X = High when Y2,Y1 and Y0 = 100 TFF Y2

Modulus-5 Counter Simulation Results Your simulation should look similar to this: Your counter should count from 0 to 4 (MOD-5) but stays at 4 until reset = 1. Reset =1 at anytime shouldl also bring the counter back to start counting from 0.

Part D A Shift Register

Shift Register reVieW How many bits? _____ ? Shift to the ______ ? Name the Shift Register below = ______ ? MI[3..0] IN[4..0]

Shift Register Black Box View LOM = load MI [3..0] into register LO = load IN [3..0] into register. SHIFT = work as clock for register. RESET = set to initial state. MI = input multiplier IN = output from 4 bit adder RESET LOM SHIFT LO IN [4..0] MI [3..0] O [8..1] LSB] SHIFT REGISTER

Shift Register Schematic Diagram

Shift Register Simulation Results Fix your input for MI and IN, e.g. MI = 9 and IN = 7 Output is Q8, Q7……Q1 and LSB: Once LOM = 1; 910 or 10012 will be loaded into Q[3..0]. Once LO = 1; 710 or 001112 will be loaded into Q[8..4]. Every PGT of SHIFT, the Output Q[8..0] will SHIFT RIGHT. Untill all shift occurs, Q[8..0] will be zero.

gOOd LucK