Problem Session 5. Overview. Part 1: An S-R Latch. Part 2: A D Latch



Similar documents
Gates, Plexers, Decoders, Registers, Addition and Comparison

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Memory Elements. Combinational logic cannot remember

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

BINARY CODED DECIMAL: B.C.D.

Decimal Number (base 10) Binary Number (base 2)

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Layout of Multiple Cells

ASYNCHRONOUS COUNTERS

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Theory of Logic Circuits. Laboratory manual. Exercise 3

ECE410 Design Project Spring 2008 Design and Characterization of a CMOS 8-bit Microprocessor Data Path

Set-Reset (SR) Latch

Copyright Peter R. Rony All rights reserved.

Chapter 2 Logic Gates and Introduction to Computer Architecture

Counters and Decoders

COMP 303 MIPS Processor Design Project 4: MIPS Processor Due Date: 11 December :59

CHAPTER 11: Flip Flops

The components. E3: Digital electronics. Goals:

Flip-Flops, Registers, Counters, and a Simple Processor

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

ENGI 241 Experiment 5 Basic Logic Gates

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Upon completion of unit 1.1, students will be able to

Engr354: Digital Logic Circuits

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Gates, Circuits, and Boolean Algebra

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Understanding Logic Design

UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC180B Lab 7: MISP Processor Design Spring 1995

COMBINATIONAL CIRCUITS

Design Verification & Testing Design for Testability and Scan

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Design: a mod-8 Counter

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

Register File, Finite State Machines & Hardware Control Language

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

Lecture 8: Synchronous Digital Systems

ELEC EXPERIMENT 1 Basic Digital Logic Circuits


Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Chapter 7 Memory and Programmable Logic

Combinational circuits

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Xilinx ISE. <Release Version: 10.1i> Tutorial. Department of Electrical and Computer Engineering State University of New York New Paltz

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Sequential Circuit Design

DEPARTMENT OF INFORMATION TECHNLOGY

Module 3: Floyd, Digital Fundamental

Combinational Logic Design Process

Digital Systems. Syllabus 8/18/2010 1

Lab 17: Building a 4-Digit 7-Segment LED Decoder

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Modeling Latches and Flip-flops

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

(Refer Slide Time: 00:01:16 min)

Memory Systems. Static Random Access Memory (SRAM) Cell

Memory Basics. SRAM/DRAM Basics

Sequential Logic Design Principles.Latches and Flip-Flops

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Lab 1: Full Adder 0.0

Technical Aspects of Creating and Assessing a Learning Environment in Digital Electronics for High School Students

Chapter 9 Latches, Flip-Flops, and Timers

Static-Noise-Margin Analysis of Conventional 6T SRAM Cell at 45nm Technology

SIMPLE EPROM PROGRAMMER. EPROM Programmer Design. Hardware

Glolab Talking Phone Dial Monitor

Binary Adders: Half Adders and Full Adders

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

NEW adder cells are useful for designing larger circuits despite increase in transistor count by four per cell.

Figure 8-1 Four Possible Results of Adding Two Bits

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

Systems I: Computer Organization and Architecture

Two's Complement Adder/Subtractor Lab L03

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Systems I: Computer Organization and Architecture

Lecture-3 MEMORY: Development of Memory:

16-bit ALU, Register File and Memory Write Interface

ADVANCED IC REVERSE ENGINEERING TECHNIQUES: IN DEPTH ANALYSIS OF A MODERN SMART CARD. Olivier THOMAS Blackhat USA 2015

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

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

The 104 Duke_ACC Machine

EE360: Digital Design I Course Syllabus

Admin. ECE 550: Fundamentals of Computer Systems and Engineering. Last time. VHDL: Behavioral vs Structural. Memory Elements

CD4043BC CD4044BC Quad 3-STATE NOR R/S Latches Quad 3-STATE NAND R/S Latches

EXPERIMENT 8. Flip-Flops and Sequential Circuits

CHAPTER 3 Boolean Algebra and Digital Logic

Transcription:

Problem Session 5 Overview The most basic element of binary storage is the latch, consisting of 2 cross-coupled NAND (or NOR) gates. The D latch, with a write enable input, is a rudimentary storage element. The D latch is employed in most forms of static memory, SRAM. In this problem session, you will work with Logisim to create a functioning 2x4 bank of SRAM using D latches. You will begin by building a D latch from an S-R latch. Part 1: An S-R Latch Objective: Implement an S-R Latch in Logisim. Build a cross-coupled NAND latch in Logisim. Connect inputs S and R to input pins, and outputs Q, and ~Q to output pins. Label all inputs and outputs. Experiment with your latch and draw (on paper) a truth table with inputs S, R and Q p and outputs Q and ~Q. Verify that your S-R Latch has the functionality discussed in class; identify the Not Allowed (NA), Set, Reset, and Memory modes of operation. Show your S-R latch and truth table to your instructor. Part 2: A D Latch Objective: Use your implementation of the S-R latch to create a D Latch in Logisim. Jan, 2014 1

Build a D latch using your implementation of an S-R Latch along with two additional NAND gates and one inverter. The D Latch has 2 inputs: a data line and a write enable signal. Derive the truth table for the D latch with inputs WE and D, and outputs Q and ~Q. Verify that your D Latch has the functionality discussed in class, i.e., the latch is set when the write enable is 1 and it will hold that state after the write enable line goes to zero. Name your circuit D_Latch (rename main to be D_latch ) and save it to a file with the same name (i.e., D_Latch.circ ). Show your D latch and truth table to your instructor. Part 3: A 4-bit Word of Memory Objective: Use your implementation of a D-Latch to create a bank of four D latches. Import your D_Latch subcircuit into a new circuit file. To import a circuit into a Logisim project, go to Project > Load Library > Logisim Library and then navigate to the file containing the subcircuit that you want to import. You need to import the D latch file you created above. Jan, 2014 2

Test the operation of your register. For testing, connect the output, Q, of each D latch to an output pin, and the inputs, WE and D, to input pins as shown above. Show your4-bit word of memory to your instructor, and demonstrate its functionality. Part 4: Controlling a 2x4 Bank of Memory Objective: Use a decoder to select the 4-bit word of memory to read or write. Begin by replicating your 4-bit word to produce two 4-bit words of memory as shown below. Alternatively you can download that design from this link (you ll also need the D latch that is used as a library file) and open it in Logisim. Now, use a 1x2 decoder to select the 4-bit word of memory to write: 1. Open the Plexers folder and insert a decoder in the schematic. (Optionally, select the decoder and set Include Enable to off in the lower-left corner of the Logisim window.) The decoder should have just one input select bit. For two words of memory, we can select between those two words with just one bit. The value of the select bit is the memory address. As noted in class, when we have 2 n words of memory we must have n address bits. 2. For each word of memory, introduce one AND gate. The output of that AND gate is the WE line for that word of memory. The input to the AND gate is one Decoder output and the WE signal, as shown below. This construction assures that both the WE signal and the memory address are used to select the word of memory that is written. Jan, 2014 3

Show your bank of memory to your instructor, and demonstrate its functionality. Part 5: Writing to the Memory Bank Objective: Create common data inputs for both words of memory. Demonstrate that you can store different bit patterns in each word of memory. Jan, 2014 4

Part 6: Reading from the Memory Bank Objective: Create a common output and use multiplexors to select the word that loads to output. Use (four) 2x1 multiplexers to select the 4-bit word of memory that writes to output: Open the Plexers folder and insert four MUXs into your schematic. (Optionally, select the MUX and set Include Enable to off in the lower-left corner of the Logisim window.) Each MUX should have just one select bit---the same select bit as the decoder---the memory address. Each MUX produces one bit of output by passing that bit from the selected word of memory. In other words, via the MUXs, the memory address is used to select the word that passes through to output one bit at a time. Demonstrate that you can store different bit patterns in each word and load the bit pattern from each word to output. Jan, 2014 5