Commit 1a5fc8ee authored by Adrian Fiergolski's avatar Adrian Fiergolski

Fix bug 1760: entity and architecture declaration in mutiple files.

parent db4e1ab6
......@@ -107,10 +107,6 @@ class VHDLParser(DepParser):
DepRelation("%s.%s" % (dep_file.library, text.group(1)),
DepRelation.PROVIDE,
DepRelation.ENTITY))
dep_file.add_relation(
DepRelation("%s.%s" % (dep_file.library, text.group(1)),
DepRelation.USE,
DepRelation.ARCHITECTURE))
return "<hdlmake entity_pattern %s.%s>" % (dep_file.library,
text.group(1))
......@@ -136,6 +132,11 @@ class VHDLParser(DepParser):
DepRelation("%s.%s" % (dep_file.library, text.group(2)),
DepRelation.PROVIDE,
DepRelation.ARCHITECTURE))
dep_file.add_relation(
DepRelation("%s.%s" % (dep_file.library, text.group(2)),
DepRelation.USE,
DepRelation.ENTITY))
return "<hdlmake architecture %s.%s>" % (dep_file.library,
text.group(2))
buf = re.sub(architecture_split_pattern, do_architecture, buf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment