Logic Functions > Old-Style Macrofunctions > Counters |
4-Bit Binary Up Counter with Synchronous Load and Synchronous Clear
Default Signal Levels:
AHDL Function Prototype (port name and order also apply to Verilog HDL):
FUNCTION 74163 (clk, ldn, clrn, enp, ent, d, c, b, a)
RETURNS (qd, qc, qb, qa, rco);
Inputs |
Outputs |
||||||||||||
CLK |
LDN |
CLRN |
ENP |
ENT |
D |
C |
B |
A |
QD |
QC |
QB |
QA |
RCO |
X |
L |
X |
X |
|
|
|
|
L |
L |
L |
L |
L |
|
L |
H |
X |
X |
d |
c |
b |
a |
d |
c |
b |
a |
* |
|
H |
H |
L |
H |
|
|
|
|
QD |
QC |
QB |
QA |
* |
|
H |
H |
H |
L |
|
|
|
|
QD |
QC |
QB |
QA |
L |
|
H |
H |
H |
H |
|
|
|
|
L |
L |
L |
L |
L |
|
H |
H |
H |
H |
|
|
|
|
L |
L |
L |
H |
L |
|
H |
H |
H |
H |
|
|
|
|
L |
L |
H |
L |
L |
|
H |
H |
H |
H |
|
|
|
|
L |
L |
H |
H |
L |
|
H |
H |
H |
H |
|
|
|
|
L |
H |
L |
L |
L |
|
H |
H |
H |
H |
|
|
|
|
L |
H |
L |
H |
L |
|
H |
H |
H |
H |
|
|
|
|
L |
H |
H |
L |
L |
|
H |
H |
H |
H |
|
|
|
|
L |
H |
H |
H |
L |
|
H |
H |
H |
H |
|
|
|
|
H |
L |
L |
L |
L |
|
H |
H |
H |
H |
|
|
|
|
H |
L |
L |
H |
L |
|
H |
H |
H |
H |
|
|
|
|
H |
L |
H |
L |
L |
|
H |
H |
H |
H |
|
|
|
|
H |
L |
H |
H |
L |
|
H |
H |
H |
H |
|
|
|
|
H |
H |
L |
L |
L |
|
H |
H |
H |
H |
|
|
|
|
H |
H |
L |
H |
L |
|
H |
H |
H |
H |
|
|
|
|
H |
H |
H |
L |
L |
|
H |
H |
H |
H |
|
|
|
|
H |
H |
H |
H |
H |
* RCO = QD & QC & QB & QA & ENT
See also: