Skip to content

Commit d8ed714

Browse files
committed
Give variable better name
1 parent a4b91c1 commit d8ed714

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TrackletAlgorithm/VMRouterCM.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ inline T createVMStub(const InputStub<InType> inputStub,
172172
// Main function
173173

174174
// Two input region types InType and DISK2S due to the disks having both 2S and PS inputs.
175-
template<int nInputMems, int nInputDisk2SMems, int nAllCopies, int nAllInnerCopies, int Layer, int Disk, regionType InType, regionType OutType, int rzSizeME, int rzSizeTE, int phiRegSize, int nTEOCopies>
175+
template<int nInputMems, int nInputDisk2SMems, int nAllCopies, int nAllInnerVariants, int Layer, int Disk, regionType InType, regionType OutType, int rzSizeME, int rzSizeTE, int phiRegSize, int nTEOCopies>
176176
void VMRouterCM(const BXType bx, BXType& bx_o,
177177
// LUTs
178178
const int METable[],
@@ -219,15 +219,15 @@ void VMRouterCM(const BXType bx, BXType& bx_o,
219219

220220
//Create variables that keep track of which memory address to read and write to
221221
ap_uint<kNBits_MemAddr> read_addr(0); // Reading of input stubs
222-
ap_uint<kNBits_MemAddr> addrCountASI[nAllInnerCopies]; // Writing of Inner Allstubs
222+
ap_uint<kNBits_MemAddr> addrCountASI[nAllInnerVariants]; // Writing of Inner Allstubs
223223
ap_uint<5> addrCountME[1 << (rzSizeME + phiRegSize)]; // Writing of ME stubs, number of bits taken from whatever is defined in the memories: (4+rzSize + phiRegSize)-(rzSize + phiRegSize)+1
224224
ap_uint<5> addrCountTE[1 << (rzSizeTE + phiRegSize)]; // Writing of TE stubs
225225
#pragma HLS array_partition variable=addrCountASI complete dim=0
226226
#pragma HLS array_partition variable=addrCountME complete dim=0
227227
#pragma HLS array_partition variable=addrCountTE complete dim=0
228228

229-
if (nAllInnerCopies) {
230-
for (int i = 0; i < nAllInnerCopies; i++) {
229+
if (nAllInnerVariants) {
230+
for (int i = 0; i < nAllInnerVariants; i++) {
231231
#pragma HLS unroll
232232
addrCountASI[i] = 0;
233233
}

0 commit comments

Comments
 (0)