OpenCores
URL https://opencores.org/ocsvn/ssbcc/ssbcc/trunk

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [ssbcc] - Diff between revs 12 and 13

Show entire file | Details | Blame | View Log

Rev 12 Rev 13
Line 197... Line 197...
      config.ProcessCombine(loc,line);
      config.ProcessCombine(loc,line);
    # CONSTANTS
    # CONSTANTS
    elif re.match(r'\s*CONSTANT\b',line):
    elif re.match(r'\s*CONSTANT\b',line):
      if not config.Exists('architecture'):
      if not config.Exists('architecture'):
        raise SSBCCException('"CONSTANT"s cannot be defined before the "ARCHITECTURE" is defined at %s' % loc);
        raise SSBCCException('"CONSTANT"s cannot be defined before the "ARCHITECTURE" is defined at %s' % loc);
      cmd = re.findall(r'\s*CONSTANT\s+(C_\w+)\s+(0|-?[1-9]\d*|\w+)\s*$',line);
      cmd = re.findall(r'\s*CONSTANT\s+(C_\w+)\s+(\S+)\s*$',line);
      if not cmd:
      if not cmd:
        raise SSBCCException('Malformed "CONSTANT" configuration command on %s: "%s"' % (loc,line,));
        raise SSBCCException('Malformed "CONSTANT" configuration command on %s: "%s"' % (loc,line,));
      cmd = cmd[0];
      cmd = cmd[0];
      config.AddConstant(cmd[0],cmd[1],loc);
      config.AddConstant(cmd[0],cmd[1],loc);
    # DATA_STACK
    # DATA_STACK

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.