VindiAppendixA.doc

advertisement
APPENDIX A
FLOWCHARTS OF STC MODULES
A.1 L3 module while storing data in the buffer.
Start of Event
with “event_start”
A
Check
if L3_buffer is
enabled
Enabled
Not enabled
Activate
L3 hit
FIFO
Activate
Activate
Activate
L3
L3 correct- L3 cluster
raw_data
strip FIFO
ed data
FIFO
FIFO
B
bad strips
cluster strips
corrected data
raw_data
Find which L3 block
to write
C
hits
A
Activate L3
bad strip
FIFO
A.1 L3 module while storing data in the buffer. (continued..)
B
Wait till the L3 word is ready;
Store L3 word in this block
Is
This last
road ?
yes
B
No
Is
this last L3
block ?
yes
C
No
D
A.2 L3 module while reading out data to an external bus.
Wait until Start of
L3 read
(start_L3)
F
No
Is
there any L3
data ?
Yes
F
G
Is the
Data Bus
available?
Yes
No
Yes
A
No
Read
hits ?
B
Yes
No
Read
raw_input ?
C
Yes
No
Read
Corrected
data ?
Yes
D
No
Read
clusters?
Yes
E
No
Read
bad strips ?
F
A.2 L3 module while reading out data to an external bus (continued.)
bad strips
E
cluster strips
D
corrected data
C
raw_data
B
hits
A
Readout L3
hit FIFO
Readout
L3
raw_data
FIFO
Readout L3
corrected
data FIFO
Readout
L3 clusterstrip FIFO
Read out
L3 bad-strip
FIFO
G
A.3: Road-Word Generator Block
START
C
TEMP = LOWER_ADDRESS
Find “highest-bit”
Assume A=0000001
Start from bit0
B
Yes
Is current
bit = ‘1’ ?
No
Yes
A
1.
2.
3.
4.
CAM_WORD = TEMP
Replace lower bits with “don’t cares”
Store CAM_W ORD
Add A to TEMP
Is this bit
“highest-bit” ?
No
Yes
A
Is this bit
“bit5” ?
No
1. Move to next bit
2. Left shift A (by replacing
lowest bit with ‘0’)
B
A.3: Road-Word Generator Block (continued)
A
TEMP = UPPER_ADDRESS
Reset A to 0000001
Start from bit0
E
Yes
Is this bit “bit6”
?
1. CAM_W ORD = “ddddddd”
2. Store CAM_WORD
C
No
Is this bit
“highest-bit” ?
Yes
D
No
Yes
Is current
bit = ‘0’ ?
No
1.
2.
3.
4.
CAM_W ORD = TEMP
Replace lower bits with “don’t cares”
Store CAM_W ORD
Subtract A from TEMP
D
1. Move to next bit
2. Left shift A (by replacing
lowest bit with ‘1’)
Is current
bit = ‘1’ ?
E
No
Yes
1. CAM_WORD = TEMP
2. Replace lower bits with “don’t cares”
3. Store CAM_W ORD
C
Download