Docsity

the document consisting ads, Summaries of Advanced Calculus

Toggle sidebar
bg1
DIGITAL SYSTEM DESIGN
–
SEMESTER EXAM
PREPARATION GUIDE
S
our
ce A
n
al
ys
i
s
(
r
ead
first
)
U
p
l
o
aded PDF
:
C
omp
le
t
e Digi
t
al De
s
ig
n
b
y
Ma
r
k Balch
(
McG
r
a
w
-
Hill
,
2003
).
S
y
llab
us
U
n
i
t
C
ov
e
r
age i
n
PDF Ac
t
i
on
t
ake
n
1
.
S
yn
ch
ronous
s
e
qu
e
nt
ial ci
r
c
u
i
ts
Pa
rt
ial
:
fl
i
p
-
flops
(
Ch
.
1
.
8
),
syn
ch
ronous
l
o
gic a
n
d
c
ount
e
rs
(
1
.
9
),
t
i
m
i
n
g
(
1
.
10
),
FSM b
u
bble diag
r
a
ms
a
n
d
Ve
r
il
o
g FSM
s
(
Ch
.
10
.
4
–
10
.
6
).
N
ot
c
ov
e
r
ed
:
st
a
t
e
r
ed
u
c
t
i
on
,
st
a
t
e a
ss
ig
nm
e
nt
,
i
t
e
r
a
t
i
v
e ci
r
c
u
i
ts
,
ASM
cha
rts
PDF
us
ed
w
he
r
e
a
v
ailable
;
r
e
st
f
rom
st
a
n
da
r
d
su
bjec
t
k
now
ledge
2
.
A
syn
ch
ronous
s
e
qu
e
nt
ial ci
r
c
u
i
ts
O
n
l
y
m
e
t
a
st
abili
ty
a
n
d cl
o
ck
-
d
om
ai
n
syn
ch
ron
i
z
e
rs
(
Ch
.
10
.
3
),
FIFO
syn
c
(
Ch
.
4
.
8
)
M
ost
l
y
st
a
n
da
r
d
su
bjec
t
k
now
ledge
3
.
Fa
u
l
t
diag
nos
i
s
a
n
d
t
e
st
abili
ty
N
ot
c
ov
e
r
ed
(
on
l
y
JTAG
/
b
oun
da
ry
s
ca
n
,
diag
nost
ic
s
,
Ch
.
19
.
5
–
19
.
7
)
S
t
a
n
da
r
d
su
bjec
t
k
now
ledge
;
JTAG
us
ed
f
or
DFT
4
.
PLD
s
a
n
d FPGA G
oo
d
:
GAL
/
PAL
,
CPLD
,
FPGA
(
Ch
.
11
).
Xili
nx
XC
4000
not
de
s
c
r
ibed i
n
de
t
ail
PDF
+
st
a
n
da
r
d
k
now
ledge
5
.
VHDL
N
ot
c
ov
e
r
ed
(
b
oo
k
us
e
s
Ve
r
il
o
g
,
Ch
.
10
.
1
)
S
t
a
n
da
r
d VHDL
k
now
ledge
;
Ve
r
il
o
g
f
rom
PDF gi
v
e
n
a
s
c
omp
a
r
i
son
N
ot
e
on
r
e
p
e
t
i
t
i
on
clai
ms
:
N
o
pr
e
v
i
ous
qu
e
st
i
on
p
a
p
e
rs
w
e
r
e
prov
ided
,
so
I d
o
NOT clai
m
a
ny
qu
e
st
i
on
i
s
"
f
r
e
qu
e
nt
l
y
r
e
p
ea
t
ed
".
P
r
i
or
i
t
ie
s
bel
ow
a
r
e ba
s
ed
on
sy
llab
us
w
eigh
t
a
n
d
typ
ical
16
-
m
a
r
k
su
i
t
abili
ty
on
l
y
.
UNIT
1
–
CLOCKED SYNCHRONOUS SEQUENTIAL CIRCUITS
PART
1
–
16
-
MARK QUESTIONS
Q
1
.
1
E
xp
lai
n
t
he a
n
al
ys
i
s
o
f a cl
o
cked
syn
ch
ronous
s
e
qu
e
nt
ial ci
r
c
u
i
t
w
i
t
h a
n
e
x
a
mp
le
.
(
16
)
—
HIGH
I
ntro
d
u
c
t
i
on
.
A
s
e
qu
e
nt
ial ci
r
c
u
i
t
ha
s
outputs
t
ha
t
de
p
e
n
d
on
pr
e
s
e
nt
i
nputs
AND
p
a
st
hi
story
(
stor
ed
st
a
t
e
).
A
cl
o
cked
syn
ch
ronous
ci
r
c
u
i
t
cha
n
ge
s
st
a
t
e
on
l
y
a
t
t
he ac
t
i
v
e cl
o
ck edge
,
all
fl
i
p
-
flops
s
ha
r
i
n
g
t
he
s
a
m
e cl
o
ck
(
Balch
:
"
syn
ch
ronous
ci
r
c
u
i
ts
c
ons
i
st
o
f
st
a
t
e
-
f
u
ll ele
m
e
nts
(
flops
)
w
i
t
h c
om
bi
n
a
tor
ial l
o
gic
prov
idi
n
g feedback
to
ge
n
e
r
a
t
e
t
he
n
e
xt
st
a
t
e
").
A
n
al
ys
i
s
m
ea
ns
:
gi
v
e
n
t
he ci
r
c
u
i
t
,
fin
d i
ts
beha
v
i
our
.
Ge
n
e
r
al
mo
del
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download the document consisting ads and more Summaries Advanced Calculus in PDF only on Docsity!

DIGITAL SYSTEM DESIGN – SEMESTER EXAM

PREPARATION GUIDE

Source Analysis (read first)

Uploaded PDF: Complete Digital Design by Mark Balch (McGraw-Hill, 2003 ).

Syllabus Unit Coverage in PDF Action taken

  1. Synchronous

sequential circuits

Partial: flip-flops (Ch. 1. 8 ), synchronous logic and counters ( 1. 9 ), timing ( 1. 10 ), FSM bubble diagrams and Verilog FSMs (Ch. 10. 4 – 10. 6 ). Not covered: state reduction, state assignment, iterative circuits, ASM charts

PDF used where available; rest from standard subject knowledge

  1. Asynchronous

sequential circuits

Only metastability and clock-domain synchronizers (Ch. 10. 3 ), FIFO sync (Ch. 4. 8 )

Mostly standard subject knowledge

  1. Fault diagnosis and testability

Not covered (only JTAG/boundary scan, diagnostics, Ch. 19. 5 – 19. 7 )

Standard subject knowledge; JTAG used for DFT

  1. PLDs and FPGA Good: GAL/PAL, CPLD, FPGA (Ch. 11 ). Xilinx XC 4000

not described in detail

PDF + standard knowledge

  1. VHDL Not covered (book uses Verilog, Ch. 10. 1 ) Standard VHDL knowledge; Verilog from PDF given as comparison

Note on repetition claims: No previous question papers were provided, so I do NOT claim any question is "frequently repeated". Priorities below are based on syllabus weight and typical 16 - mark suitability only.

UNIT 1 – CLOCKED SYNCHRONOUS SEQUENTIAL CIRCUITS

PART 1 – 16 - MARK QUESTIONS

Q 1. 1 Explain the analysis of a clocked synchronous sequential circuit with an example.

( 16 ) — HIGH

Introduction. A sequential circuit has outputs that depend on present inputs AND past history (stored state). A clocked synchronous circuit changes state only at the active clock edge, all flip- flops sharing the same clock (Balch: "synchronous circuits consist of state-full elements (flops) with combinatorial logic providing feedback to generate the next state"). Analysis means: given the circuit, find its behaviour.

General model

Moore model: Z = f(Q) only. Mealy model: Z = f(Q, X).

Steps of analysis

  1. Assign variable names to flip-flop outputs (Q) and inputs.
  2. Write excitation (input) equations for each flip-flop (e.g., D_A = ..., J_B = ..., K_B = ...).
  3. Write output equations.
  4. Build the state table (present state, input → next state, output) using the flip-flop characteristic equation: D: Q⁺ = D | T: Q⁺ = T⊕Q | JK: Q⁺ = JQ' + K'Q | SR: Q⁺ = S + R'Q
  5. Draw the state diagram (circles = states, arcs labelled input/output).
  6. Describe function in words (e.g., "detects sequence 101 ").

Inputs X ──►[ Combinational logic ]──► Outputs Z ▲ │ next-state Y (flip-flop inputs) │ ▼ present state ◄[ Flip-flops ]◄── CLOCK Q

Worked example. Circuit with two D flip-flops A, B and input x: D_A = A·x + B·x ; D_B = A'·x ; output y = (A + B)·x'

Present A B x= 0 : Next AB, y x= 1 : Next AB, y

00 00 , 0 01 , 0

01 00 , 1 11 , 0

10 00 , 1 11 , 0

11 00 , 1 10 , 0

(Derivation: for AB= 01 ,x= 1 : D_A = 0 · 1 + 1 · 1 = 1 , D_B = 1 · 1 = 1 → 11 .) The state diagram is drawn from this table: 4 circles ( 00 , 01 , 10 , 11 ), arcs labelled x/y.

Flip-flop timing note (PDF, 1. 10 ). The clock period must satisfy t_CLK ≥ t_CO + t_PROP + t_SU (plus skew/jitter); hold-time requires t_CO + t_PROP(min) > t_H.

Applications. Counters, sequence detectors, control units, serial adders. Conclusion. Analysis converts a logic diagram into a state table/diagram, which reveals the function and allows verification.

Q 1. 2 What are state diagram, state table and state assignment? Explain the state-

reduction technique with an example. ( 16 ) — HIGH

  1. State diagram: graphical form; each state = circle; each transition = directed arc labelled input/output (Mealy) or input only with output inside circle (Moore). (PDF shows "bubble diagram" for FSMs.)

Q 1. 3 Explain the design procedure for synchronous sequential circuits. Design a

sequence detector for " 101 " (overlapping) using JK/D flip-flops. ( 16 ) — HIGH

Design steps

  1. Understand specification; draw state diagram.
  2. Form state table; reduce states.
  3. Assign binary codes.
  4. Choose flip-flop type; derive excitation table requirements.
  5. Simplify using K-maps (PDF 1. 3 – Karnaugh maps, don't-cares).
  6. Draw logic diagram; verify.

Flip-flop excitation tables

Q→Q⁺ D T J K S R

0 → 0 0 0 0 X 0 X

0 → 1 1 1 1 X 1 0

1 → 0 0 1 X 1 0 1

1 → 1 1 0 X 0 X 0

Example: Mealy detector for 101 (overlap allowed) States: S 0 (no progress), S 1 (got " 1 "), S 2 (got " 10 ").

PS x= 0 x= 1

S 0 S 0 , 0 S 1 , 0

S 1 S 2 , 0 S 1 , 0

S 2 S 0 , 0 S 1 , 1

Assign S 0 = 00 , S 1 = 01 , S 2 = 10 ( 11 unused = don't care). Let state = AB.

AB x A⁺B⁺ z

00 0 00 0

00 1 01 0

01 0 10 0

01 1 01 0

10 0 00 0

10 1 01 1

Using D flip-flops (D = next state), K-map with don't cares for 11 :

D_A = A'B x' D_B = x z = A x

Circuit: two D flip-flops, gates: AND(A',B,x'), AND(A,x) for output; D_B directly driven by x. (PDF

  1. 5 gives similar hardware serial-receiver design using 7400 - family chips; PDF 10. 4 shows Verilog pattern-matching FSM with Mealy output.)

Verilog (from PDF style): two always blocks – clocked state register + combinational next- state/output block with a default to avoid hung states.

Conclusion. A systematic procedure guarantees a correct, minimal circuit.

Q 1. 4 Explain the design of iterative circuits with an example. ( 16 ) — MEDIUM

Definition. An iterative circuit is a combinational circuit built from a cascade of identical cells; each cell takes primary inputs of its bit position plus carry/state signals from the previous cell and produces outputs plus signals to the next cell. It is the combinational equivalent of a sequential machine processing bits serially (cells replace time steps).

Design procedure: ( 1 ) design one cell as a sequential-style state table where the "state" = signal passed between cells; ( 2 ) minimise states; ( 3 ) assign codes; ( 4 ) derive logic; ( 5 ) replicate n times and set boundary conditions.

Example – Parity checker / Ripple-carry adder.

x0 ─┐ x1 ─┐ xn-1 ─┐ ┌───▼──┐ c 1 ┌──▼───┐ c 2 ┌───────▼┐ cn │Cell 0 ├───►│Cell 1 ├──►...►│Cell n-1├──► └──┬───┘ └──┬───┘ └───┬────┘ z0 z1 zn- (c 0 = boundary input)

PART 2 – 2 - MARK QUESTIONS (UNIT 1 )

  1. Define sequential circuit. Output depends on present inputs and present state (memory).
  2. Difference between combinational and sequential? Combinational: no memory, output = f(inputs). Sequential: has flip-flops; output also depends on past.
  3. Synchronous sequential circuit? All flip-flops are triggered by a common clock; state changes only at the clock edge.
  4. Moore vs Mealy? Moore output depends only on present state; Mealy output depends on state and input (may need fewer states, outputs may glitch).
  5. State diagram? Graph with states as nodes and transitions as arcs labelled input/output.
  6. State table? Tabular representation of present state, next state and output for all inputs.
  7. State reduction – why? Removes redundant (equivalent) states, reducing flip-flops and gates.
  8. Equivalent states? States giving same outputs for all input sequences and equivalent next states.
  9. State assignment? Allocating binary codes to states.
  10. One-hot encoding? One flip-flop per state, only one is 1 at a time; simple decoding, more flip- flops.
  11. Characteristic equations? D: Q⁺=D; T: Q⁺=T⊕Q; JK: Q⁺=JQ'+K'Q; SR: Q⁺=S+R'Q.
  12. Excitation table? Table of inputs needed for a given Q→Q⁺ transition.
  13. Setup time, hold time? Setup: input must be stable before clock edge; hold: stable after edge (PDF 1. 10 ).
  14. Clock skew? Difference in clock arrival times at different flip-flops; may cause hold violations (PDF 1. 11 ).
  15. Clock jitter? Cycle-to-cycle variation of clock edge timing (PDF 1. 12 ).
  16. Ripple counter vs synchronous counter? Ripple: each flop clocks the next, delay accumulates; synchronous: common clock, all change together (PDF 1. 8 – 1. 9 ).
  17. Iterative network? Cascade of identical combinational cells passing signals between them.
  18. ASM chart? Flow-chart-like description of a digital controller's states, decisions and outputs.
  19. ASM block? One state box with its decision and conditional output boxes (one clock period).
  20. Conditional output box? Oval box for outputs that depend on inputs (Mealy-type).
  21. Race in synchronous design? Not applicable normally since edge-triggered; races mainly in asynchronous circuits.
  22. Why unused states are treated as don't cares? Gives larger K-map groups, simpler logic (PDF 1. 3 ).
  23. Lock-out condition? Unused states never return to valid cycle; avoided by self-correcting logic (PDF's default clause in FSM).

PART 3 – UNIT 1 IMPORTANT TOPICS

Must-study 16 M: Analysis; State reduction + assignment; Design with example (sequence detector/counter); ASM chart. Key terms: Moore/Mealy, excitation table, state table, one-hot, ASM block. Do not skip: Flip-flop equations/excitation tables; K-map simplification with don't cares; at least one worked design.

UNIT 2 – ASYNCHRONOUS SEQUENTIAL CIRCUITS

PART 1 – 16 - MARK QUESTIONS

Q 2. 1 Explain the analysis of an asynchronous sequential circuit. ( 16 ) — HIGH

Definition. Asynchronous sequential circuits have no clock; state changes occur in response to input changes. Memory is provided by feedback paths with delays (gate delays Δ), not flip-flops. (Contrast with PDF 3. 5 : asynchronous MPU bus uses signal sequencing, not a clock.)

Modes: Fundamental mode (only one input changes at a time, and inputs change only when circuit is stable) and pulse mode.

General model

Analysis procedure

  1. Identify feedback loops; label feedback outputs as Y (excitation) and delayed inputs as y (secondary variables).
  2. Write Boolean equations for Y and output Z.
  3. Build the transition table (rows y, columns x, entries Y). Circled entries (Y = y) are stable states.
  4. Convert to flow table by assigning letters to rows (a, b, c…).
  5. Trace behaviour for input changes; check for races and hazards.

Example (SR latch with NOR gates): Y = S + R'y

y SR= 00 01 11 10

0 0 0 1 →? 1

1 1 0 0 (unstable if

R) …

(Y = S + R'y: for 00 : Y=y (stable); 01 : Y= 0 ; 10 : Y= 1 ; 11 forbidden/Y= 1

when S= 1 .) Stable states are those where Y=y.

Conclusion. The analysis shows stable/unstable states and reveals races and hazards.

Q 2. 2 Explain flow table reduction, races and state assignment in asynchronous circuits.

( 16 ) — HIGH

  1. Primitive flow table: each row has only one stable state; obtained directly from the word statement.

Inputs x ──►[ Combinational ]──► Outputs Z ▲ │ Y (excitation, secondary next) │ [Delay Δ] └── y (secondary/present state) ◄┘

GD= 00 01 11 10

a (Q= 0 ) a a b a

b (Q= 1 ) b b b a

With state variable y: Y = GD + G'y + Dy (the last term, the consensus term,

prevents a static- 1 hazard when G changes while D=y= 1 ).

Output Z = y.

Implementation: AND-OR network of the three terms with feedback.

Note. Only one input may change at a time (fundamental mode). Conclusion. Careful hazard and race handling is the key to correct asynchronous design.

Q 2. 4 Explain static, dynamic and essential hazards and the methods to eliminate them.

( 16 ) — HIGH

Hazard: a momentary (unwanted) glitch caused by unequal propagation delays, in a circuit that otherwise has correct steady-state behaviour.

  1. Static- 1 hazard: output should stay 1 but momentarily drops to 0. Occurs in SOP circuits when adjacent 1s in the K-map are covered by different product terms. Example: F = AB + A'C with B=C= 1 : when A changes, F glitches. Cure: add the consensus term BC → F = AB + A'C + BC.
  2. Static- 0 hazard: output should stay 0 but glitches to 1. Occurs in POS circuits; cure by adding redundant sum term.
  3. Dynamic hazard: output changes 0 → 1 → 0 → 1 (or 1 → 0 → 1 → 0 ) when it should change once. Needs three or more paths of different delays; if the circuit is free of static hazards (two- level), dynamic hazards do not occur in two-level circuits.
  4. Essential hazard: in an asynchronous sequential circuit, caused when a single input change reaches a flip-flop/feedback path after the state variable change (delay of input path longer than feedback path). Detected in the flow table when three consecutive changes of the same input starting from a stable state end in a different state than one change. Cure: insert delay elements in the input (or feedback) path so that state-variable changes occur after input change completes. Cannot be removed by logic gates alone – needs delay.

Detection: K-map covering (static), flow table 3 - change test (essential). Elimination summary table

Hazard Cause Removal

Static- 1 Uncovered adjacent 1s Redundant (consensus) product term

Static- 0 Uncovered adjacent 0s Redundant sum term

Dynamic Multi-path delays Use hazard-free two-level realization

Essential Input vs feedback delay Add delay element

Conclusion. Hazard-free design is critical because a glitch in an asynchronous circuit can be memorised as a wrong state.

Q 2. 5 What are data synchronizers? Explain metastability and synchronizer techniques.

Also design a state machine for a real-time scenario. ( 16 ) — HIGH

Part A – Metastability (PDF 10. 3 ). When an asynchronous signal violates a flip-flop's setup/hold window, the output may hover at an intermediate voltage for an unpredictable time before settling to 0 or 1. It does not damage the flop but can corrupt logic.

Data synchronizers (PDF 10. 3 and 4. 8 )

  1. Two-flip-flop synchronizer (single control bit): first flop may go metastable; the second flop samples the (almost certainly stable) output one clock later. Adds 2 – 3 cycles of latency; probability of failure reduces drastically (MTBF improves exponentially). Signal must remain stable for several destination clock periods.
  2. Four-corner handshake: request/acknowledge; request is not removed until acknowledge is seen; acknowledge not removed until request removed – self-regulating for unknown clock ratios (Fig. 10. 13 in PDF).
  3. Data-path synchronization with control signal: data held stable; "data valid" passed through 2 - flop synchronizer; destination samples data when synchronized valid is detected (Fig. 10. 14 ).
  4. Dual-clock (asynchronous) FIFO: for continuous data streams; pointers synchronized across domains (PDF 4. 8 , Fig. 4. 19 ).

Part B – Real-time scenario: Traffic-light controller (Moore FSM)

Inputs: car sensor S on side road, timer expiry T. States: G_main (main green, side red), Y_main (main yellow), G_side (side green), Y_side (side yellow). Transitions: G_main →(S= 1 & T= 1 )→ Y_main → (T) → G_side →(S= 0 or T)→ Y_side →(T)→ G_main. Outputs: lights per state (Moore). Encoding: 2 bits (G_main= 00 , Y_main= 01 , G_side= 11 , Y_side= 10 – Gray to minimise glitches). Implementation: 2 D flip-flops, next-state logic, timer (counter) giving T. Use synchronized S (two-flop) as S is asynchronous – ties both parts together. A "vending machine" or "elevator controller" can also be used as the example.

PART 1 – 16 - MARK QUESTIONS

Q 3. 1 Explain fault models and the fault table (fault matrix) method of test generation.

( 16 ) — HIGH

Faults: physical defects (opens, shorts) modelled logically. Stuck-at fault model: a line is permanently at 0 (s-a- 0 ) or 1 (s-a- 1 ). Others: bridging, stuck-open, delay faults. Single stuck-at fault assumption: only one fault at a time.

Fault table method

  1. List all possible faults (e.g., every line s-a- 0 and s-a- 1 ).
  2. List all input test vectors (2ⁿ).
  3. Build a fault table: rows = faults, columns = test vectors; entry = 1 if the vector detects the fault (output of faulty circuit ≠ good circuit output).
  4. Select a minimal set of tests covering all faults: pick essential tests (columns that are the only ones detecting a fault), then use row/column dominance to reduce.

Example: circuit F = AB + C. Faults: A s-a- 0 , B s-a- 0 , AB-output s-a- 0 etc. Vectors for F: good F for 110 = 1 ; A s-a- 0 gives 0 → 110 detects A s-a- 0 , B s-a- 0 , (AB node) s-a- 0. For C s-a- 0 : need C= 1 , AB= 0 , e.g., 001. For C s-a- 1 : C= 0 , AB= 0 → output should be 0 , becomes 1 → 000. Selected minimal test set { 110 , 001 , 000 , plus vectors for A s-a- 1 ( 011? A= 0 ,B= 1 ,C= 0 → good 0 , fault 1 : A s-a- 1 gives AB= 1 → F= 1 ✓.) } e.g., 010 and 100. Table gives set { 110 , 001 , 000 , 010 , 100 } covers all single faults.

Advantages: exhaustive, gives minimum set. Disadvantages: table size explodes with n – impractical for large circuits.

Fault equivalence/collapsing: faults producing identical behaviour (e.g., all inputs s-a- 0 of an AND gate ≡ output s-a- 0 ) are grouped to reduce table. Fault dominance also reduces faults.

Q 3. 2 Explain the path sensitization method and Boolean difference method. ( 16 ) —

HIGH

A. Path sensitization. Principle: to detect fault on line L: ( 1 ) Activate – set L to opposite of the stuck value; ( 2 ) Propagate – choose a path from L to a primary output and set all side inputs of gates on the path to non-controlling values ( 1 for AND/NAND, 0 for OR/NOR); ( 3 ) Justify – find input vector producing these values. Example: For F = (AB)+(C·D), test A s-a- 0 : A= 1 ; B= 1 (to make AB= 1 for activation and pass); side input of OR is CD must be 0 (e.g., C= 0 ). Test: A= 1 ,B= 1 ,C= 0 , D=x. Good F= 1 , faulty F= 0 → detected. Limitations: reconvergent fanout may block single-path sensitization → need multi-path sensitization (a fault detectable only by sensitizing several paths simultaneously).

B. Boolean difference. For F(x1…xn), the Boolean difference with respect to xᵢ is dF/dx ᵢ = F(x ᵢ = 0 ) ⊕ F(x ᵢ = 1 ). It equals 1 exactly for input combinations where F depends on xᵢ (a change in xᵢ changes F).

Test for x ᵢ s-a- 0 : xᵢ · (dF/dxᵢ) = 1. Test for x ᵢ s-a- 1 : xᵢ' · (dF/dxᵢ) = 1. Example: F = AB + C. dF/dA = ( 0 ·B+C) ⊕ (B+C) = C ⊕ (B+C) = B C'. A s-a- 0 test: A·B·C' = 1 → A= 1 ,B= 1 ,C= 0 ✔ (same as path sensitization). A s-a- 1 test: A'·B·C' = 1 → A= 0 ,B= 1 ,C= 0. For internal lines, treat the line as an independent variable; for multiple outputs, apply to each output.

Comparison: Boolean difference is algebraic and exact for any structure (including reconvergence), but symbolic computation is heavy for large circuits.

Q 3. 3 Explain the D-algorithm for test generation. ( 16 ) — HIGH

Idea (Roth, 1966 ). Systematic, complete algorithm for generating a test for a single stuck-at fault. Uses five values: 0 , 1 , X, D, D' where D = 1 in good circuit/ 0 in faulty, D' = 0 in good/ 1 in faulty.

Terms

Singular cover: truth-table (cube) form of a gate's normal function. Primitive D-cube of a fault (PDCF): inputs that excite the fault and produce D or D' at its output (e.g., AND gate output s-a- 0 : inputs 11 → output D). Propagation D-cubes: make gate output follow D/D' from input (e.g., AND: D· 1 → D). D-frontier: gates whose output is X but one or more inputs are D/D'. J-frontier: gates with specified output not yet justified by inputs.

Steps

  1. Fault excitation: select PDCF for the faulty line.
  2. D-drive (propagation): choose a gate from D-frontier, apply propagation D-cube to carry D to its output, repeat until D/D' reaches a primary output.
  3. Line justification (consistency): assign primary inputs so all J-frontier values are satisfied (backward implication).
  4. If conflict arises, backtrack and try alternative cubes. If all exhausted → fault is redundant (undetectable).

Example. Circuit: F = (A·B)+C, fault: AB node s-a- 0. PDCF: A= 1 ,B= 1 → D at AND output. D-drive through OR: C= 0 → F=D. Test: A= 1 ,B= 1 ,C= 0 (good 1 , faulty 0 ).

Advantages: complete (finds test if exists), handles reconvergent fanout. Disadvantages: can be slow; improved variants: PODEM, FAN.

Q 3. 4 Explain fault tolerance techniques. ( 16 ) — MEDIUM

Fault tolerance: a system continues correct operation despite faults.

  1. Hardware redundancy Passive (static): TMR (Triple Modular Redundancy) – three identical modules and a majority voter; masks one module failure. NMR generalises. Voter itself is single point of failure. Active (dynamic): fault detection + reconfiguration; standby sparing (hot/cold spares). Hybrid: NMR with spares.
  2. Information redundancy: parity, Hamming codes/ECC, CRC, checksum (PDF 9. 6 – 9. 8 describe parity, checksum, CRC; PDF 9. 6 FEC forward error correction corrects bits on the fly).
  3. Time redundancy: repeat computation and compare (detects transient faults); recomputation with shifted operands.
  1. Boolean difference? dF/dx = F(x= 0 )⊕F(x= 1 ).
  2. Test for x s-a- 0 using Boolean difference? x·dF/dx = 1.
  3. D and D'? D= 1 / 0 (good/faulty); D'= 0 / 1.
  4. D-frontier? Gates with D at input and X at output.
  5. PDCF? Primitive D-cube of failure: input cube that excites a fault.
  6. Redundant fault? Undetectable fault since no test exists.
  7. Controllability/observability? Ease of setting/observing a node.
  8. TMR? Three modules plus majority voter masking one failure.
  9. Scan path? Flip-flops reconfigured as shift register for test access.
  10. BIST? Circuit tests itself using on-chip pattern generator and signature analyser.
  11. LFSR in BIST? Generates pseudo-random patterns or compresses responses.
  12. Signature analysis? Compression of output stream into a short signature compared with golden value.
  13. JTAG? IEEE 1149. 1 boundary scan standard (PDF 19. 6 ).
  14. Aliasing? Faulty response producing same signature as good circuit.
  15. Transient vs permanent fault? Temporary vs lasting.

PART 3 – UNIT 3 IMPORTANT TOPICS

Must-study: Boolean difference (numerical practice), D-algorithm (worked example), path sensitization, DFT scan + BIST, fault table. Key terms: s-a- 0 / 1 , D-frontier, TMR, MISR, JTAG.

UNIT 4 – PROGRAMMABLE LOGIC DEVICES

PART 1 – 16 - MARK QUESTIONS

Q 4. 1 Explain the PLD families: PROM, PLA, PAL, GAL, CPLD, FPGA. ( 16 ) — HIGH

Need for PLDs (PDF 11. 1 ). ASICs: high speed and low unit cost but long, expensive development (mask costs $ 50 k–$ 1 M+) and no changes. PLDs: general logic resources, rapid customization, reprogrammability, short time-to-market; penalties: higher unit cost, slower, more power. Low-end designs may even be cheaper in PLD (pad-limited dies, volume).

Basic structure: programmable AND array and OR array (sum-of-products).

Device AND array OR array Notes

PROM Fixed (decoder) Programmable Truth-table/memory style, 2ⁿ words

PLA Programmable Programmable Flexible, product-term sharing, costly/slower

PAL Programmable Fixed Cheap, fast; outputs with fixed OR

GAL Programmable (EEPROM,

reprogrammable)

Fixed Adds output macrocell; replaces PAL. Examples 16 V 8 , 22 V 10

CPLD Multiple GAL-like blocks + switch matrix

Non-volatile, deterministic timing

FPGA LUT-based logic cells + routing SRAM, high density

GAL (PDF 11. 2 ). Fuse (EEPROM) cells at AND array; true and complemented inputs; unused AND gates disabled; macrocell contains flip-flop, OR/NOR polarity mux, output enable, feedback to AND array. 22 V 10 : 10 macrocells, 12 dedicated inputs; pin-to-pin delay as low as 4 ns, tCO 3 ns, up to ~ 250 MHz. Predictable timing because logic passes through just two gate levels.

CPLD (PDF 11. 3 ). Multiple GAL-type logic blocks interconnected via central switch matrix; scales linearly; product-term sharing; multiple global clocks; multi-voltage I/O banks. Xilinx XC 9500 : 18 macrocells per function block, 54 inputs from switch matrix, 36 – 288 macrocells, 3. 5 ns pin-to-pin. Non-volatile EEPROM storage; good for control logic, state machines, glue logic.

FPGA (PDF 11. 4 ). Array of logic cells ( 4 - input LUT as small SRAM, flip-flop, carry logic), programmable routing, embedded RAM blocks, clock managers (PLL/DLL), I/O cells with registers (and DDR support). SRAM-based (volatile; reconfigured at power-on). Suited to data-path designs with thousands of flops; timing depends on routing → floorplanning and iterative place-and-route.

CPLD vs FPGA table

Feature CPLD FPGA

Architecture Product-term (AND/OR) blocks LUT + flip-flop cells

Density Hundreds of macrocells Thousands–millions

Timing Predictable Routing dependent

Storage Non-volatile EEPROM/flash Mostly SRAM (volatile)

Best for Control, glue logic Data-path, complex designs

Conclusion. Choice depends on speed, density, cost and development time.

Q 4. 3 Explain FPGA architecture, Xilinx FPGA and the XC 4000 family. ( 16 ) — HIGH

FPGA architecture (PDF 11. 4 ). Three main parts: CLBs/logic cells, programmable interconnect, I/O blocks, plus embedded RAM and clock resources.

Xilinx FPGA overview. SRAM-configured; bitstream loaded from PROM/host at power-on (master/slave/peripheral/serial modes); configuration memory cells control LUTs, multiplexers and pass-transistor routing switches.

XC 4000 family (standard knowledge; PDF only gives generic FPGA data).

  1. CLB (Configurable Logic Block): contains Two 4 - input function generators (F and G) – each a 16 × 1 LUT; One 3 - input function generator (H) that combines F, G outputs and extra input → any function of up to 9 variables in a CLB; Two D flip-flops (with clock enable, set/reset), multiplexers for output selection; Dedicated fast carry logic for adders/counters; LUTs can be used as 16 × 1 RAM (distributed RAM; XC 4000 E dual-port option).
  2. IOB (Input/Output Block): input/output buffers, flip-flops (registered I/O), tri-state output, slew-rate and pull-up/down control, programmable levels (TTL/CMOS).
  3. Interconnect: single-length lines, double-length lines, long lines, global clock lines, programmable switch matrices.
  4. Other: boundary scan (JTAG), wide edge decoders, on-chip tri-state buffers (TBUF).

Design flow: HDL/schematic → synthesis → mapping to CLBs → place & route → bitstream → configuration → verification (PDF 11. 4 : routing can take minutes to hours; floorplanning helps).

Advantages: reprogrammable, high density, fast prototyping. Disadvantages: volatile, higher cost per gate, routing delays unpredictable. Applications: prototyping, DSP, networking, interface logic.

PART 2 – 2 - MARK QUESTIONS (UNIT 4 )

  1. PLD? IC with programmable logic functions configured by the user (PDF 11. 1 ).
  2. ASIC vs PLD? ASIC custom mask, fast, low unit cost, no changes; PLD programmable, flexible, shorter time to market.
  3. PLA? Programmable AND and OR arrays.
  4. PAL? Programmable AND array, fixed OR array.
  5. GAL? Reprogrammable PAL with output macrocells (PDF 11. 2 ).
  6. Macrocell? Cell with flip-flop, polarity and feedback options for an output (PDF 11. 2 ).
  7. CPLD? Several GAL-like blocks connected by a switch matrix (PDF 11. 3 ).
  8. Product-term sharing? Borrowing product terms from neighbouring macrocells (PDF 11. 3 ).

IOB IOB IOB IOB IOB [CLB][CLB][CLB] IOB CLBs in matrix, surrounded by IOBs IOB [CLB][CLB][CLB] IOB Switch matrices (programmable interconnect points) between CLBs IOB IOB IOB IOB

  1. FPGA? Field programmable gate array: LUT-based logic cells with programmable routing (PDF 11. 4 ).
  2. LUT? SRAM look-up table implementing any function of its inputs.
  3. Why FPGAs are volatile? SRAM-based configuration lost at power-off.
  4. CLB in XC 4000? Two 4 - input LUTs, one 3 - input LUT, two flip-flops, carry logic.
  5. IOB? Input/output block with buffers and flops.
  6. Floorplanning? Manual placement of logic groups in FPGA to help routing (PDF 11. 4 ).
  7. PLL/DLL in FPGA? Clock deskew, multiplication/division (PDF 11. 4 ).
  8. Why use embedded RAM in FPGA? FIFOs, buffers without external memory (PDF 11. 4 ).
  9. Fuse map? Programming image for PLD (PDF 11. 2 ).
  10. Which PLD for control logic? CPLD/GAL; for data-path? FPGA.

PART 3 – UNIT 4 IMPORTANT TOPICS

Must-study: PLD families comparison, FSM on PLA/PAL (with PLA table), CPLD vs FPGA, XC 4000 CLB. Do not skip: GAL macrocell, product-term sharing, LUT concept.

UNIT 5 – VHDL

(PDF teaches Verilog only; VHDL material is from standard subject knowledge. Verilog equivalents from PDF Ch.10 are shown for comparison.)

PART 1 – 16 - MARK QUESTIONS

Q 5. 1 Explain VHDL operators, concurrent and sequential statements, packages and types

of modeling. ( 16 ) — HIGH

VHDL = VHSIC Hardware Description Language (IEEE 1076 ). A design = entity (interface) + architecture (behaviour/structure).

Operators (in order of precedence, low→high)

  1. Logical: AND, OR, NAND, NOR, XOR, XNOR, NOT
  2. Relational: =, /=, <, <=, >, >=
  3. Shift: SLL, SRL, SLA, SRA, ROL, ROR
  4. Adding: +, –, & (concatenation)
  5. Sign: +, – (unary)
  6. Multiplying: *, /, MOD, REM
  7. Misc: **, ABS, NOT

Concurrent statements (execute simultaneously, order irrelevant; in architecture body): signal assignment y <= a and b; , conditional ( when…else ), selected ( with…select ), process statement, component instantiation, generate statements.

Sequential statements (execute in order, inside process/subprogram): variable/signal assignment, if…elsif…else , case…when , loops ( for , while ), wait , null.

vhdl 