Professional Documents
Culture Documents
Lec 4
Lec 4
Lecture 4 Sequential
Logic Design
Dr. m7md akrawi 1
Department of Computer Engineering
University of Mosul
Types of Logic Circuits
• Combinational logic circuits:
• A type of logic circuit whose Output depends only on the present value
of its input signals.
• A combinational circuit may contain an arbitrary number of logic gates
and inverters but no feedback loops.
• A feedback loop is a connection from the output of one gate to
propagate back into the input of that same gate.
• The function of a combinational circuit represented by a logic diagram is
formally described using logic expressions and truth tables.
Logic Circuits
الجمع بي
متسلسله
Combinational Sequential
Synchronous Asynchronous
1001+
0101
1110
B3 A3 B2 A2 B1 A1 B0 A0
0 1 1 0 0 0 1 1
C3 C2 C1 C0 C-1
Adder Adder 0 Adder 1 Adder
0 0
0
1 1 1 0 Least
significant bit
Z3 Z2 Z1 Z0
4
Sequential circuits example:
Clock Clock
cycle cycle
1234 1234
1001 0111
A
Z
1010
B Adder 1000
0100
C
Least
Least significant bit
significant bit
5
CLK
x1 z1
: Combinational :
xn :
logic : zm
(a)
x1 z1
: :
xn : :
zm
Combinational
logic
: :
: :
y1 yr Yr Y1
Memory
6
(b)
Synchronous Circuit Model
متغيرات الحالة نموذج الدائرة المتزامنة
أو المتغيرات إشارات التغذية ik
الثانوية الراجعة
State or Feedback
secondary signals
variables k أجهزة الذاكرة الت يتم
الدائرة المنطقية المكونة تشغيلها بواسطة الحافة
Excitation or next k
Componential
External n logic circuit state signals Edge-triggered k
Primary (D1,…,Dk) Memory devices
input input
signals اإلثارة أو إشارات الحالة التالية Present state
variables k
(I1,…,I n) output signals
متغيرات اإلدخال
إشارات اإلدخال الخارجية (q1,…,qk)
األساسية
الحالة الراهنة
إشارات اإلخراج
Control input
signals
( التحكم في إشارات اإلدخالprovided by 7
) (التي توفرها ساعة النظامa system
1
clock) T=
f
Excitation or next K
Componential
External logic circuit state signals Propagation k
Primary n (D1,…,Dk) delays
input الدائرة المنطقية تأخيات
input المكونة اإلثارة أو إشارات الحالة
signals االنتشار Present state
variables التالية
(I1,…,In) output signals
متغيرات (q1,…,qk)
اإلدخال إشارات
اإلدخال إشارات إخراج
األساسية
الخارجية الحالة الحالية
(I1,...,In)
8
Bistable Memory Devices أجهزة الذاكرة ثنائية المستقرة
- A bistable device has two possible stable states. The device will
remain in either state indefinitely. The device can be flipped from one
state to the other by an external event or trigger.
- Such a circuit is important as the fundamental building block of a
register or memory device. This circuit is also known as a flip-flop.
سيبقى الجهاز في أي من.يحتوي الجهاز ثنائي االستقرار على حالتين مستقرتين محتملتين •9
يمكن قلب الجهاز من حالة إلى أخرى بواسطة حدث أو مشغل.الحالتين إلى أجل غير مسمى
.خارجي
تعرف هذه الدائرة أيضا.هذه الدائرة مهمة باعتبارها اللبنة األساسية لجهاز التسجيل أو الذاكرة •
.باسم الشباشب
الرموز القياسية لعناصر التخزين
Standard Symbols for Storage Elements
• المزالج
• Latches S S D D
indicator D D
ر:تشغيل الحافة
مؤش
ديناميك
ي C C
Triggered D Triggered D
(c) Edge-Triggered Flip-Flops
Triggered =تشغيل
Multivibrator متعدد الهزاز
• A multivibrator is an electronic circuit used to implement a
variety of simple two-state systems such as oscillators, timers
and flip-flops. It is characterized by two amplifying devices
(transistors, electron tubes or other devices) cross-coupled by
resistors and capacitors.
• الهزاز المتعدد هو دائرة إلكيونية تستخدم لتنفيذ مجموعة متنوعة من أنظمة
.الحالة الثنائية البسيطة مثل المذبذبات وأجهزة ضبط الوقت والنعال الفاشلة
يتمي بجهازي تضخيم (اليانزستورات أو أنابيب اإللكيون أو أجهزة أخرى) يقينان
ر
.بمقاومات ومكثفات
•
11
Types of multivibrator circuit
أنواع دائرة الهزاز المتعدد
• There are three types of multivibrator circuit:
:• هناك ثالثة أنواع من الدوائر متعددة الهزازات
•
• astable, in which the circuit is not stable in either state it
continuously oscillates from one state to the other.
فإنها تتأرجح، الحالتي
ر غي مستقرة يف أي من عندما تكون الدائرة ر, • غي مستقر
.باستمرار من حالة إىل أخرى
• monostable, in which one of the states is stable, but the other
is not. This circuit is also known as a one shot. A common
application is in eliminating switch bounce.
. لكن األخرى ليست كذلك، الدولتي مستقرةر حيث تكون إحدى, • أحادي الثبات
تطبيق شائع هو يف القضاء عىل ارتداد.تعرف هذه الدائرة أيضا باسم طلقة واحدة
.التبديل
• bistable, in which the circuit will remain in either state
indefinitely. The circuit can be flipped from one state to the
other by an external event or trigger. Such a circuit is important
as the fundamental building block of a register or memory
device. This circuit is also known as a flip-flop.
يمكن.غي مسىم الحالتي إىل أجل ر
ر حيث ستبف الدائرة يف أي من, • ثنائ اإلسطبل
هذه الدائرة مهمة.خارج
ي قلب الدائرة من حالة إىل أخرى بواسطة حدث أو مشغل
تعرف هذه الدائرة أيضا باسم.باعتبارها اللبنة األساسية لجهاز التسجيل أو الذاكرة
.الشباشب
Unstable or astable
غير مستقر أو غير مستقر
•Astable or free-running multivibrators switch back and
forth between two unstable states. This makes it useful for
generating clock signals for synchronous circuits.
•غير مستقر أو تقوم الهزازات المتعددة التي تعمل بحرية بالتبديل ذهابا وإيابا بين
. هذا يجعلها مفيدة لتوليد إشارات الساعة للدوائر المتزامنة.حالتين غير مستقرتين
•
•Crystal control may be used if a very stable clock is
needed. Crystal control is used in microprocessor based
systems and microcomputers where accurate timing
intervals are essential.
tpd>0
يمكن استخدام التحكم البلوري إذا كانت هناك حاجة إلى ساعة مستقرة
يستخدم التحكم البلوري في األنظمة القائمة على المعالجات الدقيقة.للغاية
.والحواسيب الصغيرة حيث تكون فترات التوقيت الدقيقة ضرورية
1
X(t) 0/1 Z(t)
0/1
tpd
1
Z(t) 0
time
tpd
Simplest Circuits with Feedback
The Cross-Coupled Inverter Pair أبسط الدوائر مع ردود الفعل
زوج العاكس المقترن المتقاطع
(إعادة ر0 مع القدرة عىل فرض اإلخراج إىل، • عىل غرار زوج العاكس
1 ) أو1 = تعيي
)1 = (مجموعة
•
Q 15
S'
Q'
R' R'
1 ) أو0 = تعيي
(إعادة ر0 مع القدرة عىل فرض اإلخراج إىل، عىل غرار زوج العاكس •
)0 = تعيي
( ر
Latches and Flip-Flops
المزالج والنعال
• Binary cells capable of storing 1 bit of information.
• Generates one of two possible stable states.
• Two outputs labeled Q and Q’.
• One or more inputs.
• These sequential devices differ in the way their outputs are
changed:
• The output of a latch changes independent of a clocking signal.
• The output of a flip–flop changes at specific times determined by
a clocking signal.
. بت من المعلومات1 خاليا ثنائية قادرة عىل تخزين •
.يولد واحدة من حالتي مستقرتي محتملتي •
Q'. وQ مخرجان يطلق عليهما •
واحد أو ر
.أكي من المدخالت •
:تختلف هذه األجهزة المتسلسلة ف طريقة تغيي مخرجاتها •
.يتغي إخراج المزالج بشكل مستقل عن إشارة التوقيت •
.يتغي ناتج الشباشب ف أوقات محددة تحددها إشارة التوقيت •
• 16
17
S-R Latch Behavior