| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-07-20 21:02:32 +0200 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-07-20 21:02:32 +0200 | 
| commit | b4935b361bd16648044526efba818fb6839e0ca9 (patch) | |
| tree | ac4a2db1be97aa503683fbaec6a7884da829c8b3 /ast-to-instr/src/VHDLEntity.java | |
| parent | 45b091f8a44c422d89f9d3bcaf25e5df91da31a7 (diff) | |
Still missing: Components, When Nodes, Outputs.
Diffstat (limited to 'ast-to-instr/src/VHDLEntity.java')
| -rw-r--r-- | ast-to-instr/src/VHDLEntity.java | 15 | 
1 files changed, 12 insertions, 3 deletions
| diff --git a/ast-to-instr/src/VHDLEntity.java b/ast-to-instr/src/VHDLEntity.java index f552d69..9ece7e0 100644 --- a/ast-to-instr/src/VHDLEntity.java +++ b/ast-to-instr/src/VHDLEntity.java @@ -15,8 +15,17 @@ public class VHDLEntity extends ParsableXML     static     { -      XPE_FIND_PORTS = null; /* TODO */ -      XPE_FIND_GENERICS = null; /* TODO */ +      XPE_FIND_PORTS = +         XMLManager.compile_or_die +         ( +            "./port_chain/el[@kind=\"interface_signal_declaration\"]" +         ); + +      XPE_FIND_GENERICS = +         XMLManager.compile_or_die +         ( +            "./generic_chain/el[@kind=\"interface_constant_declaration\"]" +         );     }     public VHDLEntity @@ -265,7 +274,7 @@ public class VHDLEntity extends ParsableXML        result = new ArrayList<ParsableXML>();        generics = -         (NodeList) XPE_FIND_PORTS.evaluate +         (NodeList) XPE_FIND_GENERICS.evaluate           (              xml_node,              XPathConstants.NODESET | 


