Chapter 7. Sequential Circuits Registers, Counters, RAM

Similar documents
Shift Register Counters

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

CMSC 313 Lecture 25 Registers Memory Organization DRAM

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Counters. We ll look at different kinds of counters and discuss how to build them

Sample Test Paper - I

! Charge Leakage/Charge Sharing. " Domino Logic Design Considerations. ! Logic Comparisons. ! Memory. " Classification. " ROM Memories.

SUMMER 18 EXAMINATION Subject Name: Principles of Digital Techniques Model Answer Subject Code:

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Layout of 7400-series Chips Commonly Used in. CDA 3101: Introduction to Computer Hardware and Organization

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

DE58/DC58 LOGIC DESIGN DEC 2014

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Synchronous Sequential Circuit

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

Combinational vs. Sequential. Summary of Combinational Logic. Combinational device/circuit: any circuit built using the basic gates Expressed as

Chapter 4. Sequential Logic Circuits

Lecture 7: Logic design. Combinational logic circuits

PGT104 Digital Electronics. PGT104 Digital Electronics

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

ALU A functional unit

Topics. Dynamic CMOS Sequential Design Memory and Control. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

Latches. October 13, 2003 Latches 1

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1


CHW 261: Logic Design

University of Guelph School of Engineering ENG 2410 Digital Design Fall There are 7 questions, answer all questions.

Unit 7 Sequential Circuits (Flip Flop, Registers)

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Philadelphia University Student Name: Student Number:

Semiconductor memories

Chapter 5 Synchronous Sequential Logic

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

F14 Memory Circuits. Lars Ohlsson

Lecture 3 Review on Digital Logic (Part 2)

DIGITAL LOGIC CIRCUITS

Introduction to Computer Engineering. CS/ECE 252, Spring 2017 Rahul Nayar Computer Sciences Department University of Wisconsin Madison

CMOS Inverter. Performance Scaling

Fundamentals of Boolean Algebra

Sequential Circuits Sequential circuits combinational circuits state gate delay

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

Sequential Logic Circuits

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER 14 EXAMINATION Model Answer

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

Digital Logic Design - Chapter 4

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

! Memory. " RAM Memory. ! Cell size accounts for most of memory array size. ! 6T SRAM Cell. " Used in most commercial chips

Digital Electronics Final Examination. Part A

Digital Circuits ECS 371

FSM model for sequential circuits

Chapter 7 Logic Circuits

Philadelphia University Student Name: Student Number:

CMOS Digital Integrated Circuits Lec 13 Semiconductor Memories

Models for representing sequential circuits

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Fundamentals of Digital Design

CMPEN 411. Spring Lecture 18: Static Sequential Circuits

CMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

Lecture 10: Synchronous Sequential Circuits Design

EECS150 - Digital Design Lecture 23 - FSMs & Counters

EE141- Fall 2002 Lecture 27. Memory EE141. Announcements. We finished all the labs No homework this week Projects are due next Tuesday 9am EE141

課程名稱 : 數位邏輯設計 P-1/ /6/11

Chapter Overview. Memory Classification. Memory Architectures. The Memory Core. Periphery. Reliability. Memory

CS/COE1541: Introduction to Computer Architecture. Logic Design Review. Sangyeun Cho. Computer Science Department University of Pittsburgh

Logic Design II (17.342) Spring Lecture Outline

EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs. Cross-coupled NOR gates

Digital Integrated Circuits A Design Perspective. Semiconductor. Memories. Memories

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Digital Logic Appendix A

EE141Microelettronica. CMOS Logic

Vidyalankar S.E. Sem. III [INFT] Analog and Digital Circuits Prelim Question Paper Solution

ALU, Latches and Flip-Flops

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

CS/COE0447: Computer Organization

Decoding A Counter. svbitec.wordpress.com 1

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Digital Electronics Circuits 2017

CHW 261: Logic Design

Transcription:

Chapter 7. Sequential Circuits Registers, Counters, RAM

Register - a group of binary storage elements suitable for holding binary info A group of FFs constitutes a register Commonly used as temporary storage in a processor They are faster and more convenient than main memory. More registers can help speed up complex calculations. A basic register Just put a bunch of flip-flops together Uses D FFs (ex) 4-bit register 2

Shift register a register capable of shifting its binary info by one bit position (ex) 4-bit shift register Q (t+) = SI, Q (t+) = Q (t) Q 2 (t+) = Q (t), Q 3 (t+) = Q 2 (t) Q Q Q 2 Q 3 (ex) 4-bit circular shift register with J-K FFs 3

Serial transfer from Reg A to Reg B 4

Reg A Reg B SO of B initial after T after T 2 after T 3 after T 4 Bidirectional shift register with parallel load (aka, universal shift register 7494) Mode control Reg operation S S No change Shift right Shift left Parallel load Serial transfer For parallel transfer of n- input lines 5

SI for Shift-left 6

Counters A register that goes through a predetermined sequence of states upon the application of clock pulses Gates are connected to produce the prescribed sequence of states A special type of register Types Ripple counter (asynchronous counter) FF output transition serves as a source for triggering other FFs Ex: Binary ripple counter, BCD ripple counter Synchronous counter FFs are synchronized by the common CK so that FF outputs change simultaneously 7

(ex) 4-bit binary ripple counter 8

(ex) 4-bit BCD ripple counter 9

(ex) 3-decade BCD counter CP CP

Synchronous counter types Binary counter BCD counter Ring counter only one FF output is set at any particular time (ex) 4 distinguishable states Johnson counter - starting from, each shift operation inserts s from the left until, and then s are inserted from the left until (ex) 8 distinguishable states

Counter Design procedure The same as finite state machine design procedure to be covered next chapter Draw state transition diagram 2 Derive state transition table 3 Using excitation table of the chosen FF, express FF inputs 4 Find input equations (ex) 3-bit binary up-counter state (transition) diagram 2

23 state transition table with T-FF inputs present state next state FF inputs Excitation table of T-FF Q Q + T 3

4 input equations A BC A BC T A = BC T B = C T C = 4

Counter design with different kinds of FFs (ex) ) T-FF 5

A BC X A BC X A BC X X x X X X X T A = A B + AB T B = AB + A C T C = A + B 6

2) R-S FF or 3) J-K FF excitation table Q Q + S R J K X X X X X X ABC A + B + C + S A R A S B R B S C R C J A K A J B K B J C K C X X X X X --- X X X X X X X X X X X X X X X X X X X X X X X X X --- X X X X X X X X X X X X --- X X X X X X X X X X X X X X X X 7

Using KMs, S A = B R A = C, J A = B K A = C S B = A R B = A C, J B = A K B = A C S C = AC + BC R C = C, J C = A+B K C = 8

4) D-FF D = Q + D A = A + D B = B + D C = C + A BC X A BC X A BC X X x X X X X D A = B D B = A+BC D C = AB +BC Self-starting At power-up, counter s starting state may not be in proper counter sequence (ex) 9

Should design counter so that even invalid states eventually transition to valid state self-starting ABC A + B + C + 2

Random access memory Sequential circuits depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single word, typically 32-64 bits. Random access memory (RAM) allows us to store even larger amounts of data. RAM provides large quantities of temporary storage in a computer system. Remember the basic capabilities of a memory: It should be able to store a value. You should be able to read the value that was saved. You should be able to change the stored value Read/write memory (RWM) Most RAMs lose their memory when power is removed volatile memory 2

Block diagram of RAM CS (Chip Select), enables or disables the RAM. ADRS specifies the address or location to read from or write to. WR selects between reading () from or writing () to the memory. OUT is the n-bit value stored at ADRS. DATA is the n-bit value to save in memory. 22

2 k x n RAM. There are k address lines, which specifies one of 2 k addresses. Each address contains an n-bit word. Ex: 2 24 x 6 RAM contains 2 24 = 6M words, each 6 bits long. need 24 address lines. The total storage capacity is 2 24 x 6 = 2 28 bits. Memory sizes are usually specified in numbers of bytes (8 bits). 2 28 -bit memory = 2 28 bits/8 bits per byte = 2 25 bytes = 32MB RAM size is measured in base 2 units, while hard drive size is measured in base units 23

Reading RAM Enable the chip by ensuring CS =. Select the read operation, by setting WR =. Send the desired address to the ADRS input. The contents of that address appear on OUT after a little while. Notice that the DATA input is unused for reading Writing RAM Enable the chip by setting CS =. Select the write operation, by setting WR =. Send the desired address to the ADRS input. Send the word to store to the DATA input. The output OUT is not needed for writing k n 2 k x n memory ADRS DATA CS WR OUT n 24

RAM Types Static RAM (SRAM) : once a word is written at a location, it remains stored as long as power is applied Dynamic RAM (DRAM) : stored data must be refreshed periodically by reading it and then writing it back again, or else it disappears -bit Static RAM cell Static memory is modeled using one latch for each bit of storage. 25

Why use latches instead of flip flops? A latch can be made with only two NAND or two NOR gates, but a flip-flop requires at least twice that much hardware. In general, smaller is faster, cheaper, and requires less power. Writing to the RAM cell: When CS = and WR =, the latch control input (C) will be The DATA input is thus saved in the D latch. Reading from the RAM cell and maintaining the current contents: When CS = or when WR =, the latch control input (C) will be, so the latch just maintains its present state. The current latch contents will appear on OUT when CS becomes. 26

4 X 4 RAM 27

We can use small RAMs as building blocks for making larger memories, Ex: put four 64K x 8 chips together to make a 256K x 8 memory. For 256K words, we need 8 address lines. The two most significant address lines go to the decoder, which selects one of the four 64K x 8 RAM chips. The other 6 address lines are shared by the 64K x 8 chips 28

We can also combine smaller chips to make wider memories, with the same number of addresses but more bits per word. Ex: 64K x 6 RAM, created from two 64K x 8 chips. left chip contains the most significant 8 bits of the data. right chip contains the lower 8 bits of the data. 29

Dynamic RAM A cell consists of a single Tr. and a capacitor Info is stored in the capacitor stored charge on the capacitor represents a logical. No charge represents a logic. Capacitors lose their charge after a few milliseconds. Requires constant refreshing to recharge the capacitors. (That s what s dynamic about it.) Dynamic RAMs tend to be physically smaller than static RAMs. A single bit of data can be stored with just one capacitor and one transistor, while static RAM cells typically require 4-6 transistors. This means dynamic RAM is cheaper and denser more bits can be stored in the same physical area. 3

bit DRAM cell Writing word line - H bit line H (), L () Reading word line - H bit line voltage between H and L bit line pulled slightly higher (if ) or slightly lower (if ) sense amplifier detects the small change and recovers a or accordingly read operation discharges the capacitor across the bit line external circuits buffer the value and then write back after reading 3

Capacitor contents decay over time DRAM must be refreshed (ie, update memory cell periodically) 32