E21 Lecture #9

Shift Registers

Bi-directional shift register with parallel load

  1. Clear control to clear the register to 0
  2. CP input for a clock pulse
  3. Shift-right control and left input line
  4. Shift-left control and right input line
  5. Parallel load control and n input lines
  6. A state for leaving the register information unchanged

Use MUXs on the D flip-flop input and have 2 input lines:

Timing Signals

Using a counter as a timer

Ring-counter

2N stage pulse timer

Register Files

For fast access of a small number of registers (cache, register files in a CPU)

Register files can often read two registers per cycle and write out two registers per cycle

Decoders determine which register (row) to read/write, with one decoder for each operation.

RAM

Static (SRAM)

Dynamic (DRAM)

RAM read/write process

  1. Chip select
  2. Decode the address
  3. Activate the appropriate locations in memory
  4. Write data to the memory cells / Interpret and output data

With each bit you need to be able to get:

Like in the ROM, a decoder selects the word (N inputs, 2N output lines)

We also need to be concerned about timing

Timing pattern for reading typically will be:

output hold time
  • Chip deselect
  • Outputs are still good for a certain amount of time
output disable time

Timing pattern for writing

  • Put address on the address lines (address setup time)
  • Select chip and set RW select
Data is put into the flip-flops on the falling edge of CS
  • Assert data
Data needs to be stable before falling edge of CS (data setup time)
  • Deassert CS and RW select
pulse width of CS and RW need to be sufficiently long (write pulse width)
Data is read into flip-flops
  • Deassert address

RAM is often organized so there is a row and a column decoder, each with N/2 input bits

For digital design, we are usually concerned with creating RAM circuits from smaller components

  • Use higher address lines to select the RAM chip
  • Use lower address lines to get the data