translator.intermediateBuilder.helperFunctions
index
/home/yentl/UA/devs-eindwerk/translator/translator/intermediateBuilder/helperFunctions.py

#All the keywords of verilog (you can't use these as names)

 
Functions
       
add(a, b)
Adds the two parameters (This function can be passed as a parameter (for calculateStartingPoint))
deleteElementsFromElementList(elementsToBeDeleted, elementList)
We delete the elementsToBeDeleted from the list
getInputList(annotatedComponentList)
Will return all the input coordinates of all the components
getOutputList(annotatedComponentList)
Will return all the ouput coordinates of all the components
returnA(a, b)
Returns the first parameter (This function can be passed as a parameter (for calculateStartingPoint))
sub(a, b)
Subtracts the two parameters (This function can be passed as a parameter (for calculateStartingPoint))
validName(name, proposedName, startingNumber, nameList, isWire=False)
Test whether a name is valid, if it is not it will return a valid name (and the returned name is added to the used name list)
It wil try to use the proposed name if the real name isn't good enough (Verilog doesn't like names that are equal to a keyword or a name that has special signs)

 
Data
        keyWordList = ['always', 'end', 'ifnone', 'or', 'rpmos', 'tranif1', 'and', 'endcase', 'initial', 'output', 'rtran', 'tri', 'assign', 'endmodule', 'inout', 'parameter', 'rtranif0', 'tri0', 'begin', 'endfunction', ...]