26 lines
558 B
Python
26 lines
558 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg.vhdlFile.classify import block_configuration, component_configuration
|
|
|
|
|
|
def detect(iToken, lObjects):
|
|
return classify(iToken, lObjects)
|
|
|
|
|
|
def classify(iToken, lObjects):
|
|
"""
|
|
configuration_item ::=
|
|
block_configuration
|
|
| component_configuration
|
|
"""
|
|
|
|
iCurrent = component_configuration.detect(iToken, lObjects)
|
|
if iCurrent != iToken:
|
|
return iCurrent
|
|
|
|
iCurrent = block_configuration.detect(iToken, lObjects)
|
|
if iCurrent != iToken:
|
|
return iCurrent
|
|
|
|
return iToken
|