C747 of 57
0 XP
  1. Hook
  2. Problems

C7 · Problem set 9

Problem set 9: state machines and memory

These problems use lessons 37 to 45: finite state machines, designing them, memory technologies, and memory arrays with programmable logic.

Check

A state machine has 9 states.

(a)

How many flip-flops does a binary encoding need?

(b)

How many unused codes does it leave?

Check

A machine detects a particular 5-bit input sequence, overlapping allowed.

(a)

How many states does a Moore version need?

(b)

How many does a Mealy version need?

Check

A Moore 101 detector codes its states S0 = 00, S1 ("1") = 01, S2 ("10") = 10, S3 ("101") = 11. Write Q1+.

Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.

Check

A Moore machine detects the pair 10. Its states are S0 = 00 (nothing yet), S1 = 01 (just saw 1) and S2 = 10 (just saw 10, output 1); a 1 always leads to S1, a 0 from S1 leads to S2, and a 0 from S0 or S2 leads to S0. The code 11 is never used. Write Q1+.

Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.

Check

A ring of 6 states advances one state per clock, wrapping after the last.

(a)

Starting in state 1, where is it after 5 clocks?

(b)

How many flip-flops does a one-hot encoding use?

Check

A memory has 20 address lines and 8-bit words.

(a)

How many words does it hold?

(b)

How many mebibytes is that?

Check

A 128K × 16 memory is built from 64K × 16 chips.

(a)

How many chips?

(b)

How many address bits drive the chip-select decoder?

Check

A DRAM must refresh all 16384 rows every 32 ms.

(a)

How often must it refresh one row?

Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.

(b)

How many row refreshes per second?

Check

A bit line's sense signal grows as 1−e−t/τ with τ = 40 ps.

(a)

How long until it reaches 0.3 of its final value?

Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.

(b)

And 90%?

Check

A ROM implements 2 functions of 8 inputs.

(a)

How many bits does it store?

(b)

How many words?

Check

An FPGA has 4-input LUTs.

(a)

How many configuration bits does each LUT hold?

(b)

How many LUTs does a 13-input AND take?

Check

A 2-input LUT is configured K0 = 1, K1 = 0, K2 = 0, K3 = 1 (selected by AB). What does it compute?

Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.

Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.

Practice

Keep practicing

12 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.