示例#1
0
def p_signalDeclaration(p):
	'''signalDeclaration : SIGNAL identifierList COLON signalType SCOLON
						 | SIGNAL identifierList COLON signalDirection signalType SCOLON
						 '''
	signals = []
	# Create all of the signals
	for ident in p[2]:
		signals.append(vhdl.signal(ident, 'signal'))
	# Push the signals up the tree
	p[0] = signals
示例#2
0
def p_signalDeclaration(p):
    '''signalDeclaration : SIGNAL identifierList COLON signalType SCOLON
						 | SIGNAL identifierList COLON signalDirection signalType SCOLON
						 '''
    signals = []
    # Create all of the signals
    for ident in p[2]:
        signals.append(vhdl.signal(ident, 'signal'))
    # Push the signals up the tree
    p[0] = signals
示例#3
0
def p_signalDeclarationList(p):
	'''signalDeclarationList : identifierList COLON signalDirection signalType SCOLON signalDeclarationList
							 | identifierList COLON signalDirection signalType'''
	signals = []
	for ident in p[1]:
		signals.append(vhdl.signal(ident,p[3]))
	# If there are any, combine with the other signals
	if len(p) == 7:
		for sig in p[6]:
			signals.append(sig)
	
	# Push the signals up the tree
	p[0] = signals
示例#4
0
def p_signalDeclarationList(p):
    '''signalDeclarationList : identifierList COLON signalDirection signalType SCOLON signalDeclarationList
							 | identifierList COLON signalDirection signalType'''
    signals = []
    for ident in p[1]:
        signals.append(vhdl.signal(ident, p[3]))
    # If there are any, combine with the other signals
    if len(p) == 7:
        for sig in p[6]:
            signals.append(sig)

    # Push the signals up the tree
    p[0] = signals