Digital Logic & Design Dr. Waseem Ikram Lecture No. 35.

Slides:



Advertisements
Similar presentations
Shift Registers Module M11.1 Section 7.3.
Advertisements

1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
Multiplexers Lecture L6.4 Section 6.4.
Designing State Machines Lecture L9.2 Handout Section 9.2.
Arbitrary Waveforms Lecture L8.5 Section 7.2. CLK DQ !Q CLK DQ !Q CLK DQ !Q Q0Q0.D Q1 Q2 Q1.D Q2.D s s s s3 0 1.
Counters as State Machines Lecture L9.1 Handout Section 9.1.
Flip-Flops Module M10.2 Section 7.1. D Latch Q !Q CLK D !S !R S R X 0 Q 0 !Q 0 D CLK Q !Q Note that Q follows D when the clock in high, and.
Binary Counters Lecture L8.3 Section 8.2. Counters 3-Bit Up Counter 3-Bit Down Counter Up-Down Counter.
Shift Registers and Shift Register Counters
Shift Registers Lecture L6.6 Section Bit Shift Register.
Flip-Flops Lecture L8.2 Section 7.1 – Book Sect. 8.1– Handout.
EET 1131 Unit 12 Shift Registers
Counters and Registers Wen-Hung Liao, Ph.D.. Objectives Understand several types of schemes used to decode different types of counters. Anticipate and.
Sequential Circuit Introduction to Counter
Registers and Counters
Digital Fundamentals Floyd Chapter 9 Tenth Edition
Counters.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
Chapter 1_4 Part II Counters
1 Shift Registers. –Definitions –I/O Types: serial, parallel, combinations –Direction: left, right, bidirectional –Applications –VHDL implementations.
Figure 9–1 The flip-flop as a storage element.
Last Mod: March 2014  Paul R. Godin Shift Registers Registers 1.1.
Circuit, State Diagram, State Table
Registers CPE 49 RMUTI KOTAT.
Department of Communication Engineering, NCTU 1 Unit 2 Reviews on Logic Elements.
Last Mod: Jan 2015  Paul R. Godin Shift Registers : Technician Series Registers 1.1.
Counters and Registers
Digital Electronics Electronics Technology Landon Johnson Shift Registers.
Digital Fundamentals Tenth Edition Floyd Chapter 9.
EE121 John Wakerly Lecture #9
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 7 – Part 2.
DIGITAL SYSTEMS TCE Shift Registers and Shift Register Counters Week 10 and Week 11 (Lecture 2 of 2)
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Lecture No. 29 Sequential Logic.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
Digital Logic & Design Dr. Waseem Ikram Lecture No. 26.
CSE 260 Digital Logic Design Registers, Memory BRAC University.
REGISTERS - Introduction to Registers Shift Registers Lecture 1 Gunjeet Kaur Dronacharya Group of Institutions.
Digital Logic & Design Dr. Waseem Ikram Lecture No. 25.
Digital Logic & Design Dr. Waseem Ikram Lecture 37.
EET 1131 Unit 12 Shift Registers
Electronics Technology
Digital Fundamentals Abdul Hameed
Digital Logic & Design Dr. Waseem Ikram Lecture 05
Digital Logic & Design Dr. Waseem Ikram Lecture No. 28.
Sequential Logic Counters and Registers
CHAPTER 9 Shift Registers
Digital Logic & Design Dr. Waseem Ikram Lecture No. 30.
DIGITAL ELECTRONICS THEME 7: Register structures – with parallel input, with serial input. Shift registers – reversible, cycle. Register structures are.
EET 1131 Unit 12 Shift Registers
Counters as State Machines
Digital Logic & Design Dr. Waseem Ikram Lecture No. 34.
Shift Registers Lecture L8.6 Section 8.3.
Generic Array Logic (GAL)
Lecture No. 24 Sequential Logic.
Recap D flip-flop based counter Flip-flop transition table
Digital Logic & Design Dr. Waseem Ikram Lecture No. 31.
Digital Logic & Design Dr. Waseem Ikram Lecture No. 16.
Programmable Logic Devices
ECE 3130 – Digital Electronics and Design
Lecture No. 32 Sequential Logic.
Programmable Logic Devices
Digital Logic & Design Dr. Waseem Ikram Lecture No. 36.
Programmable Logic Devices
CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 16 March 14 W’05 Yutao He 4532B Boelter Hall
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Shift Registers Dr. Rebhi S. Baraka
Presentation transcript:

Digital Logic & Design Dr. Waseem Ikram Lecture No. 35

Recap Serial In/Shift Right/Serial Out Serial In/Shift Left/Serial Out D flip-flop Shift Right Register Universal Serial register

Recap Serial In/Parallel Out Parallel In/Serial Out Parallel In/Parallel Out Universal Shift register

Recap Rotate Right Operation Rotate Left Operation Johnson Counter Ring Counter

11-bit Serial Data format 00/1 11 Stop Bit Data bitsStop bits

Series-to-Parallel Converter

Keyboard Encoder circuit

OLMC of the GAL22V10 device

Software Mode Specification XPIN 22ISTYPE ‘reg’; YPIN 23ISTYPE ‘com’; XPIN 22ISTYPE ‘reg.buffer; ZPIN 20ISTYPE ‘reg.invert’; X := D; X.CLK = Clock; X := D; Y = D;

Assignment Operators for Registered Mode The assignment operators ‘:=’ and ‘:>’ are used in logic descriptions to indicate a Registered output. X := D; Y = D;

ABEL Input file of an 8-bit register with inverted outputs Clock, D0, D1, D2, D3, D4, D5, D6 D7 PIN1, 2, 3, 4, 5, 6, 7, 8, 9; Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7 PIN22, 21, 20, 19, 18, 17, 16, 15 ISTYPE ‘reg.invert’;

ABEL Input file of an 8-bit register with inverted outputs The logical declarations are [Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7] := [D0, D1, D2, D3, D4, D5, D6, D7]; [Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7].CLK = Clock;

ABEL Statements for implementing an 8-bit register with inverted outputs The pin declarations are Clock, D0, D1, D2, D3, D4, D5, D6 D7 PIN1, 2, 3, 4, 5, 6, 7, 8, 9; Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7PIN22, 21, 20, 19, 18, 17, 16, 15 ISTYPE ‘reg.invert’; The logical declarations are [Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7] := [D0, D1, D2, D3, D4, D5, D6, D7]; [Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7].CLK = Clock; The logical declarations can also be written as Q0 := D0; Q0.CLK = Clock; Q1 := D1; Q1.CLK = Clock; Q2 := D2; Q2.CLK = Clock; Q3 := D3; Q3.CLK = Clock; Q4 := D4; Q4.CLK = Clock; Q5 := D5; Q5.CLK = Clock; Q6 := D6; Q6.CLK = Clock; Q7 := D7; Q7.CLK = Clock;

ABEL Input file of an 8-bit register with inverted outputs The logical declarations can also be written as Q0 := D0; Q0.CLK = Clock; Q1 := D1; Q1.CLK = Clock; Q2 := D2; Q2.CLK = Clock; Q3 := D3; Q3.CLK = Clock; Q4 := D4;

ABEL Input file of an 8-bit register with inverted outputs Q4.CLK = Clock; Q5 := D5; Q5.CLK = Clock; Q6 := D6; Q6.CLK = Clock; Q7 := D7; Q7.CLK = Clock;

GAL22V10 configured as an 8-bit inverted output register OLMC Input/Output ENB 8 OLMC ENB 10 OLMC ENB 12 OLMC ENB 14 OLMC ENB 16 OLMC ENB 16 OLMC ENB 14 OLMC ENB 12 OLMC ENB 10 OLMC Input/Output ENB 8 GAL22V10 Clock D0 D1 D2 D3 D4 D5 D6 D7 Input 0 Q 1 Q 2 Q 3 Q 4 Q 5 Q 6 Q 7 Q

8-bit Serial In/Parallel Out Shift Register

Module Right_ bit _ shift _ register Title ‘8-bit shift register in a GAL22V10’ “Device Declaration RegisterDevice‘P22V10 “Pin Declaration Clock, ClearPin1, 2; Data, EnablePin 3, 4; Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7 Pin 16, 17, 18, 19, 20, 21, 22, 23 I STYPE ‘reg.buffer’ Equations Q0 := Data & Enable; [Q1, Q2, Q3, Q4, Q5, Q6, Q7]

Equations Q0 := Data & Enable; [Q1, Q2, Q3, Q4, Q5, Q6, Q7] := [Q0, Q1, Q2, Q3, Q4, Q5, Q6]; [Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7].CLK = clock; [Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7].AR = !clear;

Test_Vectors ([Clock, Clear, Data, Enable] -> [Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7]) [.x., 0,.x.,.x. ] -> [0, 0, 0, 0, 0, 0, 0, 0 ]; [.c., 1, 1, 0 ] -> [0, 0, 0, 0, 0, 0, 0, 0 ]; [.c., 1, 0, 1 ] -> [0, 0, 0, 0, 0, 0, 0, 0 ]; [.c., 1, 1, 1 ] -> [1, 0, 0, 0, 0, 0, 0, 0 ]; [.c., 1, 0, 1 ] -> [0, 1, 0, 0, 0, 0, 0, 0 ]; [.c., 1, 1, 1 ] -> [1, 0, 1, 0, 0, 0, 0, 0 ]; [.c., 1, 0, 1 ] -> [0, 1, 0, 1, 0, 0, 0, 0 ]; [.c., 1, 1, 1 ] -> [1, 0, 1, 0, 1, 0, 0, 0 ]; [.c., 1, 0, 1 ] -> [0, 1, 0, 1, 0, 1, 0, 0 ]; [.c., 1, 1, 1 ] -> [1, 0, 1, 0, 1, 0, 1, 0 ]; [.c., 1, 0, 1 ] -> [0, 1, 0, 1, 0, 1, 0, 1 ]; [.c., 1, 1, 1 ] -> [1, 0, 1, 0, 1, 0, 1, 0 ]; [.c., 0, 1, 1 ] -> [0, 0, 0, 0, 0, 0, 0, 0 ]; END

4-bit Parallel In/Serial Out Shift Register

Shift Register Applications Series to Parallel Converter Serial data format (fig 1) Series to parallel converter circuit (fig 2) Keyboard Encoder (fig 3)

Programmable Sequential Logic Registered Mode OLMC circuit (fig 4) Software Mode Specification (fig 5) Example1 ABEL input file of 8-bit Register with inverted output (fig 6a) GAL22V10 diagram of register (fig 6b) Example2 8-bit Serial In/ Parallel Out Shift Register implemented using logic gates (fig 7) ABEL input file of shift Register (fig 8)

Programmable Sequential Logic Example3 4-bit Parallel In/ Serial Out Shift Register implemented using logic gates (fig 9) ABEL input file of shift Register (fig 10) Example4 3-bit Up/Down counter using D flip-flops (tab 1,2 fig 11) ABEL input file of Counter (fig 12)

Module Four_bit_shift_register Title ‘4-bit shift register in a GAL22V10’ “Device Declaration RegisterDevice‘P22V10’ “Pin Declaration Clock, ClearPin 1, 2; SHLDPin 3; D0, D1, D2, D3Pin 4, 5, 6, 7 ISTYPE ‘reg.buffer’; Q0, Q1, Q2, Q3Pin 14, 15, 16, 17 ISTYPE ‘reg.buffer’; Equations Q0 := D0; Q1 := Q0 & SHLD # D1 & !SHLD; Q2 := Q1 & SHLD # D2 & !SHLD;

Q3 := Q2 & SHLD # D3 & !SHLD; [Q0, Q1, Q2, Q3].CLK = clock; [Q0, Q1, Q2, Q3].AR = !clear; Test_Vectors ([Clock, Clear, SHLD, D0, D1, D2, D3] -> [Q3]) [.x., 0,.x.,.x.,.x.,.x.,.x. ] -> [ 0 ]; [.c., 1, 0, 0, 1, 0, 1 ] -> [ 1 ]; [.c., 1, 0, 1, 0, 1, 0 ] -> [ 0 ]; [.c., 1, 1, 1, 0, 1, 0 ] -> [ 1 ]; [.c., 1, 1, 1, 0, 1, 0 ] -> [ 0 ]; [.c., 1, 1, 1, 0, 1, 0 ] -> [ 1 ]; [.c., 0, 0, 1, 0, 1, 0 ] -> [ 0 ]; END