it's all in the logic. Google or wiki search for logic functions, logic counter or shift register & you'll come up with plenty of info. Some of the nord modular sites are interesting in this respect (advanced understanding of logic circuit implementations in dsp-land over there). Beyond that you'll ...