Commit 0a1ec8c5 authored by Benny Simonsen's avatar Benny Simonsen

Add support for entity and arch in separte files.

Note:
This implementation does not handle selecting the correct architecture
between multiple architectures.

All testcases pass
parent 1f521501
......@@ -35,7 +35,6 @@ class DepRelation(object):
"""Class used to create instances representing HDL dependency relations"""
# rel_type
# Architecture is never required.
ENTITY = 1
PACKAGE = 2
ARCHITECTURE = 3
......
......@@ -153,6 +153,9 @@ class VHDLParser(DepParser):
graph.add_provide(
dep_file,
DepRelation(ent_name, dep_file.library, DepRelation.ENTITY))
graph.add_require(
dep_file,
DepRelation(ent_name, dep_file.library, DepRelation.ARCHITECTURE))
return "<hdlmake entity_pattern %s.%s>" % (dep_file.library, ent_name)
buf = re.sub(entity_pattern, do_entity, 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