AMF-Placer
2.0
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
AMF-Vivado.py
Go to the documentation of this file.
1
import
os
2
import
numpy
as
np
3
4
benchmarkNames = [
"BLSTM_midDensity"
,
5
"halfsqueezenet"
,
"faceDetect"
,
6
"optimsoc"
,
7
"digitRecognition"
,
8
"minimap_GENE"
,
9
"MemN2N"
,
10
"OpenPiton"
]
11
12
for
benchmarkName
in
benchmarkNames:
13
overallTcl = open(
14
"/home/zslwyuan-laptop/Documents/AMF-Placer/overall.tcl"
,
"w"
)
15
outputPath =
"/home/zslwyuan-laptop/Documents/AMF-Placer-DCP-Test/dse/"
16
outputName = benchmarkName
17
18
# errorCode = os.system(
19
# "./AMFPlacer ../benchmarks/testConfig/"+benchmarkName+".json > "+outputPath+outputName+".placerLog")
20
errorCode = 0
21
if
(errorCode == 0):
22
print(
23
"open_checkpoint /home/zslwyuan-laptop/Documents/Benchmark-DCP/"
+benchmarkName+
".dcp"
, file=overallTcl)
24
print(
"source /home/zslwyuan-laptop/Documents/AMF-Placer/build/dumpData_"
+
25
benchmarkName+
"/DumpCLBPacking-first-0.tcl"
, file=overallTcl)
26
print(
"write_checkpoint /home/zslwyuan-laptop/Documents/AMF-Placer-DCP-Test/dse/"
+
27
outputName+
".dcp -force"
, file=overallTcl)
28
overallTcl.close()
29
os.system(
"vivado -mode batch -source /home/zslwyuan-laptop/Documents/AMF-Placer/overall.tcl -journal "
+
30
outputPath+outputName+
".jou"
31
+
" -log "
+ outputPath+outputName+
".log"
)
benchmarks
DSE
AMF-Vivado.py
Generated by
1.8.18