Transcript
Page 1: More Digital circuits

More Digital circuits

Page 2: More Digital circuits

Ripple Counter

• The most common counter• The problem is that,

because more than one output is changing at once, the signal is glichy

• To avoid this problem, use Gray or Johnson code

Page 3: More Digital circuits

Johnson Counter

• The Johnson counter is type of shift counter

• Put an inverted MSB back to LSB

• Glitch output free

Page 4: More Digital circuits

Johnson Counter with error recovery

Page 5: More Digital circuits

Linear Feedback Shift Registers

• A small number of taps are recycled

• An LFSR can operate at high speed compared to a binary counter because the feedback logic is very simple

• Reduce clock noise

Page 6: More Digital circuits

Many-to-One LFSR

Page 7: More Digital circuits

Many-to-One LFSR

Page 8: More Digital circuits

Maximal length LFSR

• With maximal length logic (taps selected to give

the maximal count),a small number

of register can create sequence up to 2n-1

Page 9: More Digital circuits

Divide by N LFSR Counter

• An example of the use of a LFSR

• A terminal count is provided as an input to be compared to

Page 10: More Digital circuits

Divide by N LFSR Counter

• Test fixture

Page 11: More Digital circuits

4-Bit LFSR One-to-Many Code

• One-to-Many variant splits the XOR into 2-input gates and distributes them throughout the register array

Page 12: More Digital circuits

Cyclic Redundancy Checksums

• Error detection• The data packet is

looked at as a huge binary number

• A polynomial divide this number in GF

• Reminder is checksum

Page 13: More Digital circuits

Cyclic Redundancy Checksums

Page 14: More Digital circuits

ROM

• ROM stands for Read-Only Memory• This memory is initialized when

the FPGA is configured and cannot be changed after configuration

Page 15: More Digital circuits

ROM Version of LFSR

• We can implement four-bit LFSR counter with a ROM

Page 16: More Digital circuits

RAM

• RAM stands for Random Access Memory

• A RAM is an array of cells, addressable in groups N element wide and M elements deep

Page 17: More Digital circuits

RAM

Page 18: More Digital circuits

RAM

• Unless the FPGA support embedded RAM blocks, it will consume a huge amount of logic

Page 19: More Digital circuits

FPGA with embedded RAM

Page 20: More Digital circuits

256x8 RAM Implemented in the 4000XL Device Family

Page 21: More Digital circuits

Dual port RAM

Page 22: More Digital circuits

• Jovan Popovic [email protected]• Milos Milovanovic [email protected]• Veljko Milutinovic [email protected]• Nobelovac?


Top Related