File:C5.counter.vhdl.20120328.pdf