mirror of https://github.com/openXC7/prjxray.git
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:
parent
a1a6de28e6
commit
1393723058
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue