FIFOCount.oracle
Pradeep Sindhu July 7, 1987 12:15:47 pm PDT
Reset it
R C C
| F F
e o o
| I I
s u u
| F F
e n n
| O O
t t t
| F E
u D
| u m
p o
| l p
w
| l t
1 0 0 | x x
0 0 0 | 0 1
0 0 0 | 0 1
Count up till FIFO overflows, then count down till it empties
0 1 0 | 0 1
0 1 0 | 0 0
0 1 0 | 0 0
0 1 0 | 0 0
0 0 0 | 1 0
0 0 1 | 1 0
0 0 1 | 0 0
0 0 1 | 0 0
0 0 1 | 0 0
0 0 0 | 0 1
0 0 0 | 0 1
Now count up and down interleaved: up 2, down 1, up 3, down 2, etc.
0 1 0 | 0 1
-- empty
0 1 0 | 0 0 -- 1
0 0 1 | 0 0 -- 2
0 1 0 | 0 0 -- 1
0 1 0 | 0 0 -- 2
0 1 0 | 0 0 -- 3
0 0 1 | 1 0 -- 4
0 0 1 | 0 0 -- 3
0 0 1 | 0 0 -- 2
0 0 1 | 0 0 -- 1
0 0 1 | 0 1 -- 0
.