Skip to content

Commit fc2ec72

Browse files
committed
vtr_flow: added comment to add_tile script
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 3c35c66 commit fc2ec72

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

vtr_flow/scripts/add_tiles.py

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,47 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
2+
3+
"""
4+
This script is intended to modify the architecture description file to be compliant with
5+
the new format.
6+
7+
It moves the top level pb_types attributes and tags to the tiles high-level tag.
8+
9+
BEFORE:
10+
<complexblocklist>
11+
<pb_type name="BRAM" area="2" height="4" width="1" capacity="1">
12+
<input ... />
13+
<input ... />
14+
<input ... />
15+
<output ... />
16+
<output ... />
17+
<output ... />
18+
<interconnect ... />
19+
<fc ... />
20+
<pinlocations ... />
21+
<switchblock_locations ... />
22+
</pb_type>
23+
</complexblocklist>
24+
25+
AFTER:
26+
<tiles>
27+
<tile name="BRAM" area="2" height="4" width="1" capacity="1">
28+
<interconnect ... />
29+
<fc ... />
30+
<pinlocations ... />
31+
<switchblock_locations ... />
32+
</tile>
33+
</tiles>
34+
<complexblocklist
35+
<pb_type name="BRAM">
36+
<input ... />
37+
<input ... />
38+
<input ... />
39+
<output ... />
40+
<output ... />
41+
<output ... />
42+
</pb_type>
43+
</complexblocklist>
44+
"""
245

346
from lxml import etree as ET
447
import argparse
@@ -21,7 +64,7 @@ def main():
2164
parser.add_argument(
2265
'--arch_xml',
2366
required=True,
24-
help="Input arch.xml to specialized."
67+
help="Input arch.xml that needs to be modified to move the top level pb_types to the `tiles` tag."
2568
)
2669

2770
args = parser.parse_args()

0 commit comments

Comments
 (0)