Skip to content

Latest commit

 

History

History

ring-counter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Ring Counters

This contains two ring counters implemented using Latches and pcb!. This is designed using this wikipedia page.

  • One Hot Ring Counter / Straight Ring Counter Block diagram of One-hot ring counter Image taken from Wikimedia commons.

    This sets a pattern of 1000 and rotates it.

    • This needs 4 D latches as seen from the diagram
    • exposes e (enable), r (reset), q1-q4 (output) pins
    • to reset back to 1000, set e to false, set r to true for one tick
    • after that each 3 ticks with e set to true will shift 1 by 1 position
  • Johnson's Ring Counter / Twisted Ring Counter Block diagram of Johnson's ring counter Image taken from Wikimedia commons. This changes pattern of 0000 to 1111 and back to 0000

    • This needs 4 D latches as seen from the diagram
    • exposes e (enable), r (reset), q1-q4 (output) pins
    • to reset back to 0000, set e to false, set r to true for one tick
    • after that each 3 ticks with e set to true will shift the pattern to next state