LUT5: fully support SLICEM

Signed-off-by: John McMaster <JohnDMcMaster@gmail.com>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
This commit is contained in:
John McMaster 2017-11-10 17:04:22 -08:00 committed by Tim 'mithro' Ansell
parent a1a6de28e6
commit 1393723058
1 changed files with 4 additions and 3 deletions

View File

@ -15,6 +15,7 @@ with open("design.txt", "r") as f:
CLBLM_L CLBLM_L_X10Y112 30 39 SLICE_X13Y112/B5LUT LUT5
CLBLM_L CLBLM_L_X10Y112 30 39 SLICE_X13Y112/A6LUT LUT6
CLBLM_L CLBLM_L_X10Y112 30 39 SLICE_X12Y112/C6LUT LUT_OR_MEM6
CLBLM_L CLBLM_L_X10Y145 30 5 SLICE_X12Y145/D5LUT LUT_OR_MEM5
'''
line = line.split()
tile_type = line[0]
@ -25,9 +26,9 @@ with open("design.txt", "r") as f:
site, lut_name = site_lut_name.split('/')
lut_type = line[5]
if lut_type in ('LUT5', 'LUT6'):
which = lut_name[0]
segmk.addtag(site, "%cLUT5" % which, lut_type == 'LUT5')
which = lut_name[0]
is_lut5 = lut_type in ('LUT5', 'LUT_OR_MEM5')
segmk.addtag(site, "%cLUT5" % which, is_lut5)
segmk.compile()
segmk.write()