expected.vhdlams 3.3 KB
<?xml version="1.0" encoding="ISO-8859-1"?>
<vhdlams:VAModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vhdlams="http://www.femto-st.fr/disc/vhdlams.ecore" name="source">
  <package name="source">
    <designUnit xsi:type="vhdlams:Entity" name="Block1" architecture="//@package.0/@designUnit.1"/>
    <designUnit xsi:type="vhdlams:Architecture" name="behav" entity="//@package.0/@designUnit.0">
      <statement xsi:type="vhdlams:Process" name="Activity1">
        <parameter name="InputPin1"/>
        <sequentialStatement xsi:type="vhdlams:IfThenStatement" predecessor="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.4" booleanExpression="u = 7" else="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.1">
          <sequentialStatement xsi:type="vhdlams:Statements" body="vhdl = true" successor="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.2"/>
        </sequentialStatement>
        <sequentialStatement xsi:type="vhdlams:ElseStatement" if="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.0">
          <sequentialStatement xsi:type="vhdlams:ForStatement" loopCondition="u IN i DOWNTO 0">
            <sequentialStatement xsi:type="vhdlams:ForStatement" loopCondition="i IN u DOWNTO 4">
              <sequentialStatement xsi:type="vhdlams:Statements" body="u++"/>
            </sequentialStatement>
          </sequentialStatement>
        </sequentialStatement>
        <sequentialStatement xsi:type="vhdlams:IfThenStatement" predecessor="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.0/@sequentialStatement.0" booleanExpression="i = 7" else="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.3">
          <sequentialStatement xsi:type="vhdlams:Statements" body=" "/>
        </sequentialStatement>
        <sequentialStatement xsi:type="vhdlams:ElseStatement" if="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.2">
          <sequentialStatement xsi:type="vhdlams:Statements" body=" "/>
        </sequentialStatement>
        <sequentialStatement xsi:type="vhdlams:ForStatement" successor="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.0" loopCondition="i IN 3 DOWNTO 0">
          <sequentialStatement xsi:type="vhdlams:IfThenStatement" booleanExpression="i &lt;= 4" else="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.4/@sequentialStatement.1">
            <sequentialStatement xsi:type="vhdlams:Statements" body="i++;"/>
          </sequentialStatement>
          <sequentialStatement xsi:type="vhdlams:ElseStatement" if="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.4/@sequentialStatement.0">
            <sequentialStatement xsi:type="vhdlams:ForStatement" predecessor="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.4/@sequentialStatement.1/@sequentialStatement.1" loopCondition="u IN 4 UPTO 10">
              <sequentialStatement xsi:type="vhdlams:Statements" body="u = i;"/>
            </sequentialStatement>
            <sequentialStatement xsi:type="vhdlams:Statements" body="i--" successor="//@package.0/@designUnit.1/@statement.0/@sequentialStatement.4/@sequentialStatement.1/@sequentialStatement.0"/>
          </sequentialStatement>
        </sequentialStatement>
      </statement>
    </designUnit>
  </package>
</vhdlams:VAModel>