@@ -1192,7 +1192,7 @@ def parseProcFunction(proc_name, fname_def):
1192
1192
return arg_types_list , arg_names_list , templ_pars_list
1193
1193
1194
1194
def writeModuleInst_generic (module , hls_src_dir , f_writeTemplatePars ,
1195
- f_matchArgPortNames , first_of_type , extraports ,delay ,split = False ):
1195
+ f_matchArgPortNames , first_of_type , extraports ,delay ,split = 0 ):
1196
1196
####
1197
1197
# function name
1198
1198
@@ -1352,7 +1352,7 @@ def writeModuleInst_generic(module, hls_src_dir, f_writeTemplatePars,
1352
1352
if "DL" in memory .inst and "AS" not in memory .inst : # DTCLink
1353
1353
string_mem_ports += writeProcDTCLinkRHSPorts (tmp_argname ,memory )
1354
1354
else :
1355
- string_mem_ports += writeProcMemoryRHSPorts (tmp_argname ,memory )
1355
+ string_mem_ports += writeProcMemoryRHSPorts (tmp_argname ,memory , split = split )
1356
1356
1357
1357
if portname .replace ("outer" ,"" ).find ("out" ) != - 1 :
1358
1358
if memory .isFIFO ():
@@ -1362,7 +1362,7 @@ def writeModuleInst_generic(module, hls_src_dir, f_writeTemplatePars,
1362
1362
if portname .find ("trackpar" ) != - 1 and (module .mtype == "TrackletCalculator" or module .mtype == "TrackletProcessor" ):
1363
1363
string_mem_ports += writeProcMemoryLHSPorts (tmp_argname ,memory ,split )
1364
1364
elif portname .find ("trackpar" ) != - 1 and module .mtype == "PurgeDuplicates" :
1365
- string_mem_ports += writeProcMemoryRHSPorts (tmp_argname ,memory )
1365
+ string_mem_ports += writeProcMemoryRHSPorts (tmp_argname ,memory , split = split )
1366
1366
1367
1367
# Remove the already added module and name from the lists
1368
1368
portNameList .remove (portname )
@@ -1397,17 +1397,17 @@ def writeModuleInst_generic(module, hls_src_dir, f_writeTemplatePars,
1397
1397
return str_ctrl_wire ,module_str
1398
1398
1399
1399
################################
1400
- def writeModuleInstance (module , hls_src_dir , first_of_type , extraports , delay , split = False ):
1400
+ def writeModuleInstance (module , hls_src_dir , first_of_type , extraports , delay , split = 0 ):
1401
1401
if module .mtype == 'InputRouter' :
1402
1402
return writeModuleInst_generic (module , hls_src_dir ,
1403
1403
writeTemplatePars_IR ,
1404
1404
matchArgPortNames_IR ,
1405
- first_of_type , extraports , delay )
1405
+ first_of_type , extraports , delay , split )
1406
1406
elif module .mtype == 'VMRouter' :
1407
1407
return writeModuleInst_generic (module , hls_src_dir ,
1408
1408
writeTemplatePars_VMR ,
1409
1409
matchArgPortNames_VMR ,
1410
- first_of_type , extraports , delay )
1410
+ first_of_type , extraports , delay , split )
1411
1411
elif module .mtype == 'VMRouterCM' :
1412
1412
return writeModuleInst_generic (module , hls_src_dir ,
1413
1413
writeTemplatePars_VMRCM ,
@@ -1417,7 +1417,7 @@ def writeModuleInstance(module, hls_src_dir, first_of_type, extraports, delay, s
1417
1417
return writeModuleInst_generic (module , hls_src_dir ,
1418
1418
writeTemplatePars_TE ,
1419
1419
matchArgPortNames_TE ,
1420
- first_of_type , extraports , delay )
1420
+ first_of_type , extraports , delay , split )
1421
1421
elif module .mtype == 'TrackletProcessor' :
1422
1422
return writeModuleInst_generic (module , hls_src_dir ,
1423
1423
writeTemplatePars_TP ,
@@ -1427,51 +1427,51 @@ def writeModuleInstance(module, hls_src_dir, first_of_type, extraports, delay, s
1427
1427
return writeModuleInst_generic (module , hls_src_dir ,
1428
1428
writeTemplatePars_TC ,
1429
1429
matchArgPortNames_TC ,
1430
- first_of_type , extraports , delay )
1430
+ first_of_type , extraports , delay , split )
1431
1431
elif module .mtype == 'ProjectionRouter' :
1432
1432
return writeModuleInst_generic (module , hls_src_dir ,
1433
1433
writeTemplatePars_PR ,
1434
1434
matchArgPortNames_PR ,
1435
- first_of_type , extraports , delay )
1435
+ first_of_type , extraports , delay , split )
1436
1436
elif module .mtype == 'MatchEngine' :
1437
1437
return writeModuleInst_generic (module , hls_src_dir ,
1438
1438
writeTemplatePars_ME ,
1439
1439
matchArgPortNames_ME ,
1440
- first_of_type , extraports , delay )
1440
+ first_of_type , extraports , delay , split )
1441
1441
elif module .mtype == 'MatchCalculator' :
1442
1442
return writeModuleInst_generic (module , hls_src_dir ,
1443
1443
writeTemplatePars_MC ,
1444
1444
matchArgPortNames_MC ,
1445
- first_of_type , extraports , delay )
1445
+ first_of_type , extraports , delay , split )
1446
1446
elif module .mtype == 'MatchProcessor' :
1447
1447
return writeModuleInst_generic (module , hls_src_dir ,
1448
1448
writeTemplatePars_MP ,
1449
1449
matchArgPortNames_MP ,
1450
- first_of_type , extraports , delay )
1450
+ first_of_type , extraports , delay , split )
1451
1451
elif module .mtype == 'FitTrack' :
1452
1452
return writeModuleInst_generic (module , hls_src_dir ,
1453
1453
writeTemplatePars_FT ,
1454
1454
matchArgPortNames_FT ,
1455
- first_of_type , extraports , delay )
1455
+ first_of_type , extraports , delay , split )
1456
1456
elif module .mtype == 'TrackBuilder' :
1457
1457
return writeModuleInst_generic (module , hls_src_dir ,
1458
1458
writeTemplatePars_TB ,
1459
1459
matchArgPortNames_TB ,
1460
- first_of_type , extraports , delay )
1460
+ first_of_type , extraports , delay , split )
1461
1461
elif module .mtype == 'PurgeDuplicate' :
1462
1462
return writeModuleInst_generic (module , hls_src_dir ,
1463
1463
writeTemplatePars_PD ,
1464
1464
matchArgPortNames_PD ,
1465
- first_of_type , extraports , delay )
1465
+ first_of_type , extraports , delay , split )
1466
1466
elif module .mtype == 'ProjectionCalculator' :
1467
1467
return writeModuleInst_generic (module , hls_src_dir ,
1468
1468
writeTemplatePars_PC ,
1469
1469
matchArgPortNames_PC ,
1470
- first_of_type , extraports , delay )
1470
+ first_of_type , extraports , delay , split )
1471
1471
elif module .mtype == 'VMSMERouter' :
1472
1472
return writeModuleInst_generic (module , hls_src_dir ,
1473
1473
writeTemplatePars_VMSMER ,
1474
1474
matchArgPortNames_VMSMER ,
1475
- first_of_type , extraports , delay )
1475
+ first_of_type , extraports , delay , split )
1476
1476
else :
1477
1477
raise ValueError (module .mtype + " is unknown." )
0 commit comments