1
shapeType
DIL
Description
decimal synchronous counter
lockedMode
true
Width
5
D_FF
Label
Q
Bits
4
Add
Bits
4
Const
Bits
4
Ground
In
Label
~LD
pinNumber
9
Default
1
Multiplexer
Bits
4
In
rotation
Label
~CLR
pinNumber
1
Default
1
Clock
runRealTime
true
Label
CLK
pinNumber
2
Out
Label
RCO
pinNumber
15
And
In
Label
ENT
pinNumber
10
In
Label
ENP
pinNumber
7
And
Multiplexer
Bits
4
Multiplexer
Bits
4
Const
Value
0
Bits
4
In
Label
A
pinNumber
3
Comparator
Bits
4
Const
Value
9
Bits
4
Multiplexer
Bits
4
Const
Value
0
Bits
4
Splitter
Input Splitting
4
Output Splitting
1*4
Out
Label
QA
pinNumber
14
Out
Label
QB
pinNumber
13
Out
Label
QC
pinNumber
12
Out
Label
QD
pinNumber
11
Splitter
Input Splitting
1*4
Output Splitting
4
In
Label
B
pinNumber
4
In
Label
C
pinNumber
5
In
Label
D
pinNumber
6
PowerSupply
In
Label
VCC
pinNumber
16
InDefault
In
Label
GND
pinNumber
8
Testcase
Testdata
CLK ~CLR ~LD ENT ENP D C B A QD QC QB QA
# load
loop(i,4)
loop(n,16)
C 1 0 bits(2,i) bits(4,n) bits(4,n)
end loop
end loop
# reset
loop(i,8)
loop(n,16)
C 1 0 0 0 bits(4,n) bits(4,n)
C 0 bits(3,i) bits(4,n) bits(4,0)
end loop
end loop
# count
loop(n,16)
C 1 1 1 1 bits(4,0) bits(4,(n+1)%10)
end loop
# hold
loop(n,16)
C 1 0 0 0 bits(4,n) bits(4,n)
C 1 1 0 0 bits(4,n) bits(4,n)
C 1 1 1 0 bits(4,n) bits(4,n)
C 1 1 0 1 bits(4,n) bits(4,n)
end loop