File tree Expand file tree Collapse file tree 1 file changed +45
-2
lines changed Expand file tree Collapse file tree 1 file changed +45
-2
lines changed Original file line number Diff line number Diff line change 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
+ """
2
45
3
46
from lxml import etree as ET
4
47
import argparse
@@ -21,7 +64,7 @@ def main():
21
64
parser .add_argument (
22
65
'--arch_xml' ,
23
66
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 ."
25
68
)
26
69
27
70
args = parser .parse_args ()
You can’t perform that action at this time.
0 commit comments