| summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'ast-to-instr/src/VHDLCSNode.java')
| -rw-r--r-- | ast-to-instr/src/VHDLCSNode.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ast-to-instr/src/VHDLCSNode.java b/ast-to-instr/src/VHDLCSNode.java index 05a7450..4ba6631 100644 --- a/ast-to-instr/src/VHDLCSNode.java +++ b/ast-to-instr/src/VHDLCSNode.java @@ -38,6 +38,7 @@ public class VHDLCSNode extends VHDLNode public VHDLCSNode ( + final OutputFile output, final IDs parent_id, final Node xml_node, final IDs next_node, @@ -47,6 +48,7 @@ public class VHDLCSNode extends VHDLNode { super ( + output, parent_id, xml_node, next_node, @@ -67,7 +69,7 @@ public class VHDLCSNode extends VHDLNode xml_id = XMLManager.get_attribute(xml_node, "id"); - local_id = IDs.get_id_from_xml_id(xml_id, "node"); + local_id = IDs.get_id_from_xml_id(output, xml_id, "node"); /** Functions ***********************************************************/ handle_function_label(local_id); @@ -94,10 +96,12 @@ public class VHDLCSNode extends VHDLNode { Functions.add_entry ( + output, "label", local_id, Strings.get_id_from_string ( + output, XMLManager.get_attribute(xml_node, "label") ) ); @@ -110,6 +114,7 @@ public class VHDLCSNode extends VHDLNode { Functions.add_entry ( + output, "kind", local_id, Strings.get_id_from_string("case") @@ -123,6 +128,7 @@ public class VHDLCSNode extends VHDLNode { Functions.add_entry ( + output, "depth", local_id, Strings.get_id_from_string @@ -152,6 +158,7 @@ public class VHDLCSNode extends VHDLNode { Predicates.add_entry ( + output, "has_option", local_id, Strings.get_id_from_string(s) @@ -187,6 +194,7 @@ public class VHDLCSNode extends VHDLNode { Predicates.add_entry ( + output, "expr_reads", local_id, Waveforms.get_associated_waveform_id @@ -218,7 +226,6 @@ public class VHDLCSNode extends VHDLNode XPathConstants.NODESET ); - when_branches_length = when_branches.getLength(); for (int i = 0; i < when_branches_length; ++i) @@ -227,6 +234,7 @@ public class VHDLCSNode extends VHDLNode ( new VHDLWNode ( + output, parent_id, when_branches.item(i), next_node, @@ -259,6 +267,7 @@ public class VHDLCSNode extends VHDLNode { Predicates.add_entry ( + output, "is_final", local_id ); @@ -267,6 +276,7 @@ public class VHDLCSNode extends VHDLNode { Predicates.add_entry ( + output, "node_connect", local_id, next_node @@ -279,6 +289,7 @@ public class VHDLCSNode extends VHDLNode ( new VHDLWNode ( + output, parent_id, others_branch, next_node, |


