CORE-676. Make script compatible with Quartus 22.1 QSYS format.
Investigate and implement Logic changes required to support Stratix SOC on SOM instead of Cyclone V
This commit is contained in:
parent
8dd0d69984
commit
40d515f6aa
1 changed files with 5 additions and 2 deletions
|
|
@ -269,6 +269,7 @@ class MemMapperBase :
|
|||
# ---------------------------------------------------------
|
||||
# Search a QSYS file for references to 'baseAddress' and
|
||||
# extract associated IP and bus information.
|
||||
# modified to add compatibility for Altera 22.1 Qsys format
|
||||
# (private method)
|
||||
# ---------------------------------------------------------
|
||||
@staticmethod
|
||||
|
|
@ -279,11 +280,13 @@ class MemMapperBase :
|
|||
readFileName = qsysPaths[topBlock + qsysSuffix]
|
||||
readFile = open(readFileName, 'r')
|
||||
for line in readFile:
|
||||
if ('end=' in lineArray[2]) and ('baseAddress' in line) :
|
||||
if ('end=' in lineArray[2]) and ('baseAddress' in line):
|
||||
for bus in busArray:
|
||||
testStr = '.'+bus+'\"'
|
||||
if testStr in lineArray[2]:
|
||||
lineList = re.split(r'[".]', lineArray[2])
|
||||
endPos = lineArray[2].find('end=')
|
||||
line2 = lineArray[2][endPos:]
|
||||
lineList = re.split(r'[".]', line2)
|
||||
block = lineList[1]
|
||||
wordList = block.split('_')
|
||||
ip = '_'.join(wordList[:-1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue