@@ -25,7 +25,7 @@ class ExtractionError(Exception):
2525 pass
2626
2727
28- TITAN_URL_MIRRORS = {"eecg" : "https://www.eecg.utoronto.ca/~vaughn/titan/" }
28+ URL_MIRRORS = {"eecg" : "https://www.eecg.utoronto.ca/~vaughn/titan/" }
2929
3030
3131def parse_args ():
@@ -34,7 +34,7 @@ def parse_args():
3434 Download and extract a MLP NoC benchmarks into a
3535 VTR-style directory structure.
3636
37- If a previous matching titan release tar.gz file is found
37+ If a previous matching tar.gz file is found
3838 does nothing (unless --force is specified).
3939 """
4040 )
@@ -44,8 +44,8 @@ def parse_args():
4444 "--vtr_flow_dir" ,
4545 required = True ,
4646 help = "The 'vtr_flow' directory under the VTR tree. "
47- "If specified this will extract the titan release , "
48- "placing benchmarks under vtr_flow/benchmarks/titan " ,
47+ "If specified this will extract benchmarks files , "
48+ "placing them under vtr_flow/benchmarks/noc/Large_Designs/MLP " ,
4949 )
5050 parser .add_argument (
5151 "--force" ,
@@ -73,7 +73,7 @@ def main():
7373 else :
7474 tar_gz_filename = "MLP_Benchmark_Netlist_Files_blif" + ".tar.gz"
7575
76- tar_gz_url = urllib .parse .urljoin (TITAN_URL_MIRRORS ["eecg" ], tar_gz_filename )
76+ tar_gz_url = urllib .parse .urljoin (URL_MIRRORS ["eecg" ], tar_gz_filename )
7777
7878 if not args .force and os .path .isfile (tar_gz_filename ):
7979 print ("Found existing {} (skipping download and extraction)" .format (tar_gz_filename ))
@@ -88,7 +88,7 @@ def main():
8888 print ("Failed to download:" , e )
8989 sys .exit (1 )
9090 except ExtractionError as e :
91- print ("Failed to extract titan release:" , e )
91+ print ("Failed to extract NoC MLP benchmarks release:" , e )
9292 sys .exit (3 )
9393
9494 sys .exit (0 )
@@ -121,7 +121,6 @@ def extract_to_vtr_flow_dir(args, tar_gz_filename):
121121 """
122122
123123 # Reference directories
124- # arch_dir = os.path.join(args.vtr_flow_dir, "arch")
125124 benchmarks_dir = os .path .join (args .vtr_flow_dir , "benchmarks" )
126125 mlp_benchmarks_dir = os .path .join (benchmarks_dir , "noc/Large_Designs/MLP" )
127126
0 commit comments