URL
https://opencores.org/ocsvn/ssbcc/ssbcc/trunk
[/] [ssbcc/] [trunk/] [ssbccConfig.py] - Diff between revs 9 and 10
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 9 |
Rev 10 |
Line 638... |
Line 638... |
if unrecognized:
|
if unrecognized:
|
raise SSBCCException('"%s" not recognized in COMBINE configuration command at %s' % (unrecognized[0],loc,));
|
raise SSBCCException('"%s" not recognized in COMBINE configuration command at %s' % (unrecognized[0],loc,));
|
alreadyUsed = [memName for memName in mems if self.IsCombined(memName)];
|
alreadyUsed = [memName for memName in mems if self.IsCombined(memName)];
|
if alreadyUsed:
|
if alreadyUsed:
|
raise SSBCCException('"%s" already used in COMBINE configuration command before %s' % (alreadyUsed[0],loc,));
|
raise SSBCCException('"%s" already used in COMBINE configuration command before %s' % (alreadyUsed[0],loc,));
|
repeated = [mems[ix] for ix in range(len(mems)-1) if mems[ix] in mems[ix+1]];
|
repeated = [mems[ix] for ix in range(len(mems)-1) if mems[ix] in mems[ix+1:]];
|
if repeated:
|
if repeated:
|
raise SSBCCException('"%s" repeated in COMBINE configuration command on %s' % (repeated[0],loc,));
|
raise SSBCCException('"%s" repeated in COMBINE configuration command on %s' % (repeated[0],loc,));
|
# Count the number of the different memory types being combined and validate the combination.
|
# Count the number of the different memory types being combined and validate the combination.
|
nSinglePort = sum([thisMemName in ('INSTRUCTION','DATA_STACK','RETURN_STACK',) for thisMemName in mems]);
|
nSinglePort = sum([thisMemName in ('INSTRUCTION','DATA_STACK','RETURN_STACK',) for thisMemName in mems]);
|
nROM = len([thisMemName for thisMemName in mems if self.IsROM(thisMemName)]);
|
nROM = len([thisMemName for thisMemName in mems if self.IsROM(thisMemName)]);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.