URL
                    https://opencores.org/ocsvn/ssbcc/ssbcc/trunk
                
             
            
            
[/] [ssbcc/] [trunk/] [ssbccConfig.py] - Diff between revs 4 and 8
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
   
    
      
         | Rev 4 | 
         Rev 8 | 
      
    
    
      
        | Line 60... | 
        Line 60... | 
      
      
            loc         file name and line number for error messages
  | 
            loc         file name and line number for error messages
  | 
      
      
            """
  | 
            """
  | 
      
      
            self.AddSymbol(name,loc);
  | 
            self.AddSymbol(name,loc);
  | 
      
      
            if name in self.constants:
  | 
            if name in self.constants:
  | 
      
      
              raise SSBCCException('CONSTANT "%s" already declared at %s' % (name,loc,));
  | 
              raise SSBCCException('CONSTANT "%s" already declared at %s' % (name,loc,));
  | 
      
      
            self.constants[name] = value;
  | 
            if not IsIntExpr(value):
  | 
      
      
           | 
              raise SSBCCException('Could not evaluate expression "%s" for constant at %s' % (value,loc,));
  | 
      
      
           | 
            self.constants[name] = ParseIntExpr(value);
  | 
      
      
         
  | 
         
  | 
      
      
          def AddIO(self,name,nBits,iotype,loc):
  | 
          def AddIO(self,name,nBits,iotype,loc):
  | 
      
      
            """
  | 
            """
  | 
      
      
            Add an I/O signal to the processor interface to the system.\n
  | 
            Add an I/O signal to the processor interface to the system.\n
  | 
      
      
            name        name of the I/O signal
  | 
            name        name of the I/O signal
  | 
      
    
   
 
 
         
                
        
            
            
        
        
             
    
        © copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.