C756 of 57
0 XP
  1. Hook
  2. Problems

C7 · Problem set 12

Problem set 12: digital logic across the course

These problems use the CRC project and mix in the whole course: number formats, gates, timing, counters, state machines and memories. Each one has your own numbers.

Check

Two 8-bit two's-complement numbers: −68 and +6.

(a)

What unsigned value does the bit pattern for −68 have?

(b)

What's their sum, as a signed value?

(c)

What unsigned value does the sum's 8-bit pattern have?

Check

A path runs from one flip-flop through 20 gates of 20 ps each to another flip-flop. The flip-flops have tcq = 60 ps and a setup time of 50 ps.

(a)

What's the logic delay?

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

(b)

What's the shortest clock period?

(c)

What's the highest clock frequency?

Check

A 4-bit binary counter runs from a 12 MHz clock.

(a)

What's its largest count?

(b)

At what frequency does its top bit toggle through a full cycle?

Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.

(c)

How long is one full cycle of the count, from 0 back to 0?

Check

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

(a)

How many words does it hold?

(b)

How many kibibytes (1 KiB = 1024 bytes)?

(c)

How many data wires does it need?

Check

A link protects 64-byte frames with a 16-bit CRC.

(a)

What is the longest error burst it's guaranteed to catch?

(b)

What fraction of each frame is the CRC?

Check

A byte-wide table-driven 8-bit CRC processes 256 bytes.

(a)

How many table lookups does it make?

(b)

How many shift steps would the bitwise version take?

Check

What is the 3-bit CRC of the message 10011101 with generator 1001?

Check

Two's complement in 8 bits.

(a)

What unsigned value has the same bits as −77?

(b)

What does 5 + (−77) give in 8 bits, as a signed value?

Check

A 12 MHz clock drives a modulo-24 counter and a one-hot state machine with 24 states.

(a)

How many flip-flops does the counter need?

(b)

How many more does the one-hot machine use?

Check

A design must run at 2 GHz with flip-flops of tpcq = 30 ps and tsetup = 20 ps.

(a)

How much logic delay is allowed between registers?

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

(b)

How many 25 ps gates deep can the logic be?

Check

A circuit outputs 1 when both A and B are 1 or both C and D are 1. Write it, and note it's an AOI22 followed by an inverter in CMOS.

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

Check

A memory has 20 address lines and 8-bit words, and an FPGA LUT implements its logic in 6-input blocks.

(a)

How many bits does the memory hold?

(b)

How many configuration bits does one 6-input LUT hold?

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

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