# JB Morch Tiny Tapeout project
This is an approximation of the logic in a TI CD4022B 8-bit counter.
Instead of a "Clock Inhibit" like on the TI chip, there is an Enable input.
The clock is driven into the internal flip-flops with some combinatorial logic to allow the use of the
Enable function, and this is giving ERC warnings in the simulation. I'm hoping this doesn't cause problems,
especially if the Clock input is being driven by an external microcontroller instead of a high-frequency
clock.
NOTE: The GDS in GitHub actions won't complete with the ERC warnings, so I have removed the Enable input
functionality.
In addition to Clock and Enable, there is a Reset input which sends the counter cycle back to zero.
The 8 (0-7) outputs will alternately go high on each clock pulse.
The Carry Out function is implemented on a bi-directional I/O, and is high when any of the most significant
four bits (4, 5, 6, or 7) are high.
Loading
tt-block-bidirectional-io
tt-block-bidirectional-io
0
1
2
3
4
5
6
7
Carry Out