def SyncCondition(ClockName, EveryEdge=False, Rising=True):
    """
	Return code for clock synchronous condition.
	"""
    if EveryEdge:
        return "{0}'event".format(ClockName)
    elif Rising:
        return 'rising_edge({0})'.format(ClockName)
    else:
        return 'falling_edge({0})'.format(ClockName)
