Skip to content

Commit f688698

Browse files
committed
toolchains/vivado: cleanup
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
1 parent fae60bb commit f688698

File tree

1 file changed

+37
-35
lines changed

1 file changed

+37
-35
lines changed

toolchains/vivado.py

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -45,41 +45,43 @@ def __init__(self, rootdir):
4545
self.files = []
4646
self.edam = None
4747
self.backend = None
48-
49-
self.resources_map = dict(families=dict())
50-
self.resources_map["families"]["xc7"] = {
51-
'LUT': (
52-
'LUT1',
53-
'LUT2',
54-
'LUT3',
55-
'LUT4',
56-
'LUT5',
57-
'LUT6',
58-
),
59-
'DFF': (
60-
'FDRE',
61-
'FDSE',
62-
'FDPE',
63-
"FDCE",
64-
),
65-
'CARRY': ('CARRY4', ),
66-
'IOB':
67-
(
68-
'IBUF',
69-
'OBUF',
70-
'OBUFT',
71-
'IOBUF',
72-
'OBUFTDS',
73-
'OBUFDS',
74-
('IOBUF', 2),
75-
('IOBUFDS', 2),
76-
),
77-
'PLL': ('MMCME2_ADV', 'PLLE2_ADV'),
78-
'BRAM': (
79-
'RAMB18E1',
80-
('RAMB36E1', 2),
81-
),
82-
'DSP': ('DSP48E1', ),
48+
self.resources_map = {
49+
"families": {
50+
"xc7": {
51+
'LUT': (
52+
'LUT1',
53+
'LUT2',
54+
'LUT3',
55+
'LUT4',
56+
'LUT5',
57+
'LUT6',
58+
),
59+
'DFF': (
60+
'FDRE',
61+
'FDSE',
62+
'FDPE',
63+
"FDCE",
64+
),
65+
'CARRY': ('CARRY4', ),
66+
'IOB':
67+
(
68+
'IBUF',
69+
'OBUF',
70+
'OBUFT',
71+
'IOBUF',
72+
'OBUFTDS',
73+
'OBUFDS',
74+
('IOBUF', 2),
75+
('IOBUFDS', 2),
76+
),
77+
'PLL': ('MMCME2_ADV', 'PLLE2_ADV'),
78+
'BRAM': (
79+
'RAMB18E1',
80+
('RAMB36E1', 2),
81+
),
82+
'DSP': ('DSP48E1', ),
83+
}
84+
}
8385
}
8486

8587
def get_vivado_runtimes(self, logfile):

0 commit comments

Comments
 (0)