Digital Design Lab EEN 315 Section H. Project #2 Add & Shift Multiplier. Group #6 Sam Drazin (Partner: Brian Grahn) Lucas Blanck, TA

Similar documents
Learning Outcomes. Unit 13. Sequential Logic BISTABLES, LATCHES, AND FLIP- FLOPS. I understand the difference between levelsensitive

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

Chapter 9 Counters. Clock Edge Output Q 2 Q 1 Q

Agenda. EE 260: Introduction to Digital Design Counters and Registers. Asynchronous (Ripple) Counters. Asynchronous (Ripple) Counters

Synchronous Digital Logic Systems. Review of Digital Logic. Philosophy. Combinational Logic. A Full Adder. Combinational Logic

EE 367 Lab Part 1: Sequential Logic

COMP sequential logic 1 Jan. 25, 2016

Digital Phase Adjustment Scheme 0 6/3/98, Chaney. A Digital Phase Adjustment Circuit for ATM and ATM- like Data Formats. by Thomas J.

Registers, Register Transfers and Counters Dr. Fethullah Karabiber

Registers & Counters. BME208 Logic Circuits Yalçın İŞLER

Logic Design II (17.342) Spring Lecture Outline

CHAPTER 4 RESULTS & DISCUSSION

CPS311 Lecture: Sequential Circuits

2. Logic Elements and Logic Array Blocks in the Cyclone III Device Family

MODULE 3. Combinational & Sequential logic

Asynchronous (Ripple) Counters

CSE 352 Laboratory Assignment 3

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Computer Systems Architecture

Laboratory Exercise 7

EET 1131 Lab #12 - Page 1 Revised 8/10/2018

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Introduction to Digital Logic Missouri S&T University CPE 2210 Flip-Flops

Digital Logic. ECE 206, Fall 2001: Lab 1. Learning Objectives. The Logic Simulator

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Chapter 3 Unit Combinational

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

CSC Computer Architecture and Organization

California State University, Bakersfield Computer & Electrical Engineering & Computer Science ECE 3220: Digital Design with VHDL Laboratory 7

Laboratory 9 Digital Circuits: Flip Flops, One-Shot, Shift Register, Ripple Counter

Logic Design. Flip Flops, Registers and Counters

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

CARLETON UNIVERSITY. The Tug-of-War Game. Player 1 RESET

Palestine Technical College. Engineering Professions Department. EEE Digital Logic Fundamentals. Experiment 2.

Lab #12: 4-Bit Arithmetic Logic Unit (ALU)

Momentary Changes in Outputs. State Machine Signaling. Oscillatory Behavior. Hazards/Glitches. Types of Hazards. Static Hazards

Chapter 5 Sequential Systems. Introduction

Digital Circuit Engineering

Single Channel LVDS Tx

ASYNCHRONOUS SEQUENTIAL CIRCUIT CONCEPTS

Topic D-type Flip-flops. Draw a timing diagram to illustrate the significance of edge

Engr354: Digital Logic Circuits

ECE 3401 Lecture 11. Sequential Circuits

2.6 Reset Design Strategy

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

REPEAT EXAMINATIONS 2004 SOLUTIONS

Lab #11: Register Files

100 Points. (To be performed the week of March 18, 2013)

CprE 281: Digital Logic

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

CprE 281: Digital Logic

Counter dan Register

Laboratory Exercise 7

Digital Circuits I and II Nov. 17, 1999

Good Evening! Welcome!

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Page 1. Some Definitions. Chapter 3: Sequential Logic. Sequential Logic. The Combinational Logic Unit. A NOR Gate with a Lumped Delay

Counters

TSIU03, SYSTEM DESIGN. How to Describe a HW Circuit

Analogue Versus Digital [5 M]

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Figure 7.8 Circuit Schematic with Switches, Logic Gate, and Flip-flop

Contents Circuits... 1

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Step 1 - shaft decoder to generate clockwise/anticlockwise signals

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis

Laboratory 4 A MIDI Interface

Registers and Counters

Experiment 8 Introduction to Latches and Flip-Flops and registers

Registers and Counters

Chapter 3: Sequential Logic Systems

Laboratory 4 A MIDI Interface

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

Experiment # 4 Counters and Logic Analyzer

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

Logic Design Viva Question Bank Compiled By Channveer Patil

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

THE UNIVERSITY OF TRINIDAD & TOBAGO

BISHOP ANSTEY HIGH SCHOOL & TRINITY COLLEGE EAST SIXTH FORM CXC CAPE PHYSICS, UNIT 2 Ms. S. S. CALBIO NOTES lesson #39

Decade Counters Mod-5 counter: Decade Counter:

Programmable Logic Design Techniques II

Glitches/hazards and how to avoid them. What to do when the state machine doesn t fit!

Lab #11: Register Files

DE2-115/FGPA README. 1. Running the DE2-115 for basic operation. 2. The code/project files. Project Files

Chapter 3 Unit Combinational

ECE 3401 Lecture 12. Sequential Circuits (II)

CARLETON UNIVERSITY. Facts without theory is trivia. Theory without facts is bull 2607-LRB

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

EET 1131 Lab #10 Latches and Flip-Flops

Design of a Binary Number Lock (using schematic entry method) 1. Synopsis: 2. Description of the Circuit:

WINTER 15 EXAMINATION Model Answer

Laboratory 4. Figure 1: Serdes Transceiver

Testing of Cryptographic Hardware

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Transcription:

igital esign Lab EEN 315 Section H Project #2 dd & Shift Multiplier Group #6 Sam razin (Partner: rian Grahn) Lucas lanck, T University of Miami pril 7, 2008 1

bstract The purpose of this project was to take another step in higher- level logic design and create a functional add- and- shift multiplier circuit. Important points of the project were the comprehension and usage of the shift register, as well as the capability to compile several other Is to collaborate their abilities to complete the circuit. The key results were displayed on the E2 board utilizing LEs, switches and push buttons that we assigned using Quartus. The major conclusion that we came to from this project was that the organization of most significant to least significant bits pertaining to I pin assignments is for some reason still not an industry standard, the answer to why we ll never know. 2

Table of ontents Overview... 4 Objectives... 4 Equipment... 4 escription... 4 Specifications... 6 esign Synthesis... 6 omplete Logic iagram... 6 onclusion... 7 3

Overview To complete this project, one should be fully aware of the capabilities and uses of a shift register, as well as a full adder. The most difficult aspect of this assignment was to fully understand the mechanics of the dd & Shift algorithm while putting it into actual practice. Past that, the rest is just assembly and testing of your circuit. Objectives The objective of this lab was to construct the dd & Shift circuit, and to properly transfer the pin assignments to the E2 board and test the circuit manually. These objectives were carried out using the Quartus software and the E2 instructional learning hardware. Equipment The I s that we used for this lab were: - One 2:1 ata Selector/Multiplexors - One 4:1 ata Selector/Multiplexors - One 74163 Synchronous 4- bit ounter - Two 7494 Shift Registers - One 74198 Shift Register - Five N Gates - One 7483 Full dder escription To begin building this project, we first had to fully examine the concept of the dd & Shift multiplication. Once we fully understood the way that the algorithm was supposed to work, we had to map out on paper the way we wanted it to work in our circuit. eing able to use the I Shift Register was a big convenience, having just built one by hand in the previous project. side from this, all we needed to do was to configure the right parts in the right order. The difficult part in completing the assignment however would come in the wiring; but the right parts had to be chosen first. To begin, we knew we would be comparing two 4- bit numbers, (the multiplicand and the multiplier) every time the multiply algorithm would be performed, so in order to represent these numbers and be able to handle them, we set up two, 4- bit shift registers. Next, we installed a Modulo- 4 counter into our circuit, as we would want the dd & Shift function to go through only four times, (once for each bit in our multiplicand and multiplier) and then finish. This was done by slightly modifying a four- bit 74163 Modulo- N counter. With these Is in place, we had a better idea of how the first half of the circuit would work. The top Shift Register would act as the multiplicand, and the bottom, the multiplier. 4

Each of the multiplicand s outputs would be run to an N gate, and to the other output of the N gate, a line consolidating all four outputs from the multiplier s Shift Register would be run. This single line out would be the product of a 4:1 MUX receiving the outputs directly from the multiplier Shift Register. The control lines for the MUX would come from the counter, mainly the two mid- significant bit lines of the 74163 s output. This was done for a very specific reason, for which I will have to zoom out to the scope of the full circuit momentarily to explain. What the circuit needed to eventually do was to be able to multiply the two Shift Registers together, and then shift the entire product down a bit. To start the multiplication sequence, we first had to design a Start signal. To do this, we sent a 1 to all of the lear pins for our Shift Registers. To call the Start (reset), we merely switched the send to those pins to 0, and then back to 1. We designed our circuit such that each of these two steps requires a clock cycle, and this being the case, we needed at least seven pulses to get all four multiplications done before the hold signal kicked in. This MUX feeds the N gates the multiplier input bit- by- bit, but because we needed this process to happen twice as slowly, we chose to put the MUX s select lines as the two mid- significant bits instead of the two least significant bits. This would half the processing time for the second Shift Register to feed its input. The output of the 4:1 MUX ends up dictating the N gates output directly, saying either that the output would be the same as that of the multiplicand Shift Register, or 0 ; exactly what we would want an dd & Shift circuit to do. The N gates would then be sent to the Full dder, although the order of significance is switched between the two, hence the messy connections below in the diagram. The four N outputs would serve as 1-4 inputs into the dder, and the second set of inputs, 1-4, would end up being fed back into the dder from the final stage- Shift Register, (which for explanations sake would initially be all 0 s). The sum of the Full dder is sent straight into the four most- significant bits of the 8- bit Shift Register. The four MS outputs are the ones mentioned above, being sent back into the inputs of the Full dder. This was to prepare the adder for another instance of receiving a 1 from the N gates, and having to again add the multiplicand to the current sum. The first three of the least- significant bits were sent back into their own inputs, excluding the actual LS, creating a feedback scenario. This was to maintain a sound Shift Register atmosphere, taking the bits as they came in and shifting them down one by one, filling out a full 8- bit sum. The input of the LS would be sent from the arry out send from the Full dder. This was to ensure that a proper carry- over digit from the dder was properly accounted for by the LS of the final Shift Register. The 8- bit shift register was controlled by two control lines, and the main goal in handling this I was to allow for four dd & Shift calculations, and then holding the final product. This became the inherent design for our hold signal. In order for the Shift Register to work, both control lines needed to have 1. To initialize the register, the first select line was sent from the NOTed product of the most and least- significant bits from the counter, which unless at 9, would be 1. The second control line was sent from the output of the 2:1 MUX, which would alternate from 0 to 1 depending on the least- significant bit of the counter. This alternating would allow the Shift Register to add once from the adder, and shift once within itself. This is the basis of our two- part dd & Shift algorithm. Specifications 5

There were no specific guidelines or design specifications for this project. The hold and start functions had to be created, but the premise of this project was for accurate and succinct design, leaving most of the decisions up to us. esign Synthesis Very little logic had to be written out to complete this project. The majority of this assignment tested our ability to design a functional circuit that could perform the dd & Shift functions, utilizing Shift Registers and a Full adder. omplete Logic iagram Shift Register lr LK Q Q Shift Register lr LK Q Q 4:1 lock Ground Full dder 1 1 2 2 3 S3 3 S4 4 4 0 4 E F G H Shift Register 74198 LK Q Q Q E Q F Q G Q H 74163 ounter 2:1 Q Q EN 6

onclusion Our main response from this project was more positive than negative, although it took us a while to hack through the logic and bit significances of all of the different Is. ebugging and testing the circuit were by far the most challenging aspects of the project. The wiring required was, for the most part, spelled out completely for us in the lab description. I enjoyed learning to use Quartus, seeing as it helped greatly in the organization and testing of our circuit, and the E2 features were a nice visual reinforcement of our work in this lab. 7