@@ -97,10 +97,6 @@ public class FastDataIn implements AutoCloseable {
97
97
/** Sequence number that marks the end of a sequence number stream. */
98
98
private static final int MISSING_SEQS_END = -1 ;
99
99
100
- private final int maxChipX ;
101
-
102
- private final int maxChipY ;
103
-
104
100
private final HasCoreLocation gathererCore ;
105
101
106
102
private final ThrottledConnection connection ;
@@ -130,13 +126,11 @@ public class FastDataIn implements AutoCloseable {
130
126
*/
131
127
@ MustBeClosed
132
128
@ SuppressWarnings ("MustBeClosed" )
133
- public FastDataIn (int maxChipX , int maxChipY , CoreLocation gathererCore ,
129
+ public FastDataIn (CoreLocation gathererCore ,
134
130
TransceiverInterface transceiver , ChipLocation ethernetChip ,
135
131
String ethernetAddress , IPTag iptag )
136
132
throws ProcessException , IOException , InterruptedException {
137
133
this .gathererCore = gathererCore ;
138
- this .maxChipX = maxChipX ;
139
- this .maxChipY = maxChipY ;
140
134
this .connection = new ThrottledConnection (transceiver , ethernetChip ,
141
135
ethernetAddress , iptag );
142
136
}
@@ -146,19 +140,6 @@ public void close() throws IOException {
146
140
connection .close ();
147
141
}
148
142
149
- private HasChipLocation getBoardLocalDestination (
150
- HasChipLocation monitorChip ) {
151
- int boardLocalX = monitorChip .getX () - gathererCore .getX ();
152
- if (boardLocalX < 0 ) {
153
- boardLocalX += maxChipX + 1 ;
154
- }
155
- int boardLocalY = monitorChip .getY () - gathererCore .getY ();
156
- if (boardLocalY < 0 ) {
157
- boardLocalY += maxChipY + 1 ;
158
- }
159
- return new ChipLocation (boardLocalX , boardLocalY );
160
- }
161
-
162
143
/**
163
144
* Write data to a given memory location.
164
145
*
@@ -173,7 +154,7 @@ private HasChipLocation getBoardLocalDestination(
173
154
* @throws InterruptedException
174
155
* If communications are interrupted.
175
156
*/
176
- public void fastWrite (HasChipLocation destination ,
157
+ public void fastWrite (HasChipLocation boardLocalDestination ,
177
158
MemoryLocation baseAddress , ByteBuffer data )
178
159
throws IOException , InterruptedException {
179
160
int timeoutCount = 0 ;
@@ -182,7 +163,7 @@ public void fastWrite(HasChipLocation destination,
182
163
183
164
outerLoop : while (true ) {
184
165
// Do the initial blast of data
185
- sendInitialPackets (getBoardLocalDestination ( destination ) ,
166
+ sendInitialPackets (boardLocalDestination ,
186
167
baseAddress , data , transactionId , numPackets );
187
168
/*
188
169
* Don't create a missing buffer until at least one packet has
0 commit comments