SlideShare a Scribd company logo
1 of 13
LOGIC DESIGN
Registers
Registers
I0

• Group of D Flip-Flops
• Synchronized (Single Clock)
I1
• Store Data

Q

A0

Q

A1

Q

A2

Q

D

A3

R
D

R
I2

D
R

I3
CLK
Reset

D
R

2 / 28
Registers
I0

CLK

Q

A0

Q

A1

Q

A2

Q

D

A3

R

I3
I2

I1

D

I1

R

I0
I2

A3

D

A2

R

A1

I3

A0
Note: New data has to go in
with every clock

CLK
Reset

D
R

3 / 28
Registers with Parallel Load

• Control Loading the Register with New Data
D7
D6
D5
D4
D3
D2
D1
D0

R
E
G
I
S
T
E
R

Q7
Q6
Q5
Q4
Q3
Q2
Q1
Q0

LD
0
1

Q(t+1)
Q(t)
D

LD

4 / 28
Registers with Parallel Load

• Should we block the “Clock” to keep the “Data”?
D7
D6
D5
D4
D3
D2
D1
D0

R
E
G
I
S
T
E
R
LD

Q7
Q6
Q5
Q4
Q3
Q2
Q1
Q0

I0

D

Q

A0

I1

D

Q

A1

I2

D

Q

A2

I3

D

Q

A3

Delays
the Clock

Load
CLK

5 / 28
Registers with Parallel Load

• Circulate the “old data”

I0

I0
MUX
I1 S

Y

D

Q

A0

I1

I0
MUX
I1 S

Y

D

Q

A1

I2

I0
MUX
I1 S

Y

D

Q

A2

I3

I0
MUX
I1 S

Y

D

Q

A3

Load

CLK

6 / 28
Shift Registers

• 4-Bit Shift Register

Serial
Input

SI

D

Q

D

Q

D

Q

D

Q

SO
Serial
Output

CLK

7 / 28
Shift Registers
SI

Q3
D

Q

Q2
D

Q

Q1
D

Q

Q0
D

Q

SO

CLK
CLK
SI

Q3
Q2
Q1
Q0

8 / 28
Serial Transfer
SI
Clock
Shift
Control

Shift Register A
CLK

SO

SI

Shift Register B
CLK

Clock
Shift
Control
CLK

9 / 28
Serial Addition
Shift
Control

CLK

SI
Shift Register A

x
FA
y
z

Shift Register B

Q

S
C

D

CLR
Clear

10 / 28
•
•
•
•

Universal Shift Register
Parallel-in Parallel-out
Serial-in Serial-out
Serial-in Parallel-out
Parallel-in Serial-out

D

Q

D

Q

D

Q

D

Q

11 / 28
Universal Shift Register
Q3

Q2

Q1

Q0

Q

SI
for
SR

Q

Q

D

CLR
CLK
S1
S0

Q
D

D

D

Y
S1
S0
MUX
I3 I2 I1 I0

D3

D2

D1

D0

SI
for
SL
12 / 28
Universal Shift Register
S1
USR
S0
SRin

Q3 Q2 Q1 Q0

CLR

D3 D2 D1 D0 SLin

Mode Control
S1
S0
0
0
0
1
1
0
1
1

Register
Operation
No change
Shift right
Shift left
Parallel load
13 / 28

More Related Content

What's hot

What's hot (9)

Optimizing InfluxDB Performance in the Real World | Sam Dillard | InfluxData
Optimizing InfluxDB Performance in the Real World | Sam Dillard | InfluxDataOptimizing InfluxDB Performance in the Real World | Sam Dillard | InfluxData
Optimizing InfluxDB Performance in the Real World | Sam Dillard | InfluxData
 
Introduction to InfluxDB 2.0 & Your First Flux Query by Sonia Gupta, Develope...
Introduction to InfluxDB 2.0 & Your First Flux Query by Sonia Gupta, Develope...Introduction to InfluxDB 2.0 & Your First Flux Query by Sonia Gupta, Develope...
Introduction to InfluxDB 2.0 & Your First Flux Query by Sonia Gupta, Develope...
 
Ch2
Ch2Ch2
Ch2
 
Keep Calm and Distributed Tracing
Keep Calm and Distributed TracingKeep Calm and Distributed Tracing
Keep Calm and Distributed Tracing
 
Streaming Sensor Data with Grafana and InfluxDB | Ryan Mckinley | Grafana
Streaming Sensor Data with Grafana and InfluxDB | Ryan Mckinley | GrafanaStreaming Sensor Data with Grafana and InfluxDB | Ryan Mckinley | Grafana
Streaming Sensor Data with Grafana and InfluxDB | Ryan Mckinley | Grafana
 
Registers
RegistersRegisters
Registers
 
Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData
Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData
Creating and Using the Flux SQL Datasource | Katy Farmer | InfluxData
 
Register Dld project
Register Dld projectRegister Dld project
Register Dld project
 
Register
RegisterRegister
Register
 

Viewers also liked (6)

C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3
 
Flip flops
Flip flopsFlip flops
Flip flops
 
C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2
 
Edge 2016 barbarians at the gateway
Edge 2016 barbarians at the gatewayEdge 2016 barbarians at the gateway
Edge 2016 barbarians at the gateway
 
Lecture 40
Lecture 40Lecture 40
Lecture 40
 
Counters
CountersCounters
Counters
 

Similar to Registers (6)

17 registers
17 registers17 registers
17 registers
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
Change Data Feed in Delta
Change Data Feed in DeltaChange Data Feed in Delta
Change Data Feed in Delta
 
Flipflop
FlipflopFlipflop
Flipflop
 

More from Ammara Javed (13)

Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Programmable logic devices
Programmable logic devicesProgrammable logic devices
Programmable logic devices
 
Maxterms
MaxtermsMaxterms
Maxterms
 
Karnaugh Maps
Karnaugh MapsKarnaugh Maps
Karnaugh Maps
 
Demultiplexers
DemultiplexersDemultiplexers
Demultiplexers
 
Minterms
MintermsMinterms
Minterms
 
Multiplexer
MultiplexerMultiplexer
Multiplexer
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Encoders
EncodersEncoders
Encoders
 
Decoders
DecodersDecoders
Decoders
 
Circuit Analysis-
Circuit Analysis-Circuit Analysis-
Circuit Analysis-
 
The Impact Of Holy Quran In Our Everyday Life
The Impact Of Holy Quran In Our Everyday LifeThe Impact Of Holy Quran In Our Everyday Life
The Impact Of Holy Quran In Our Everyday Life
 
C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1
 

Registers