-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
157 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
core/src/main/java/org/lflang/analyses/evm/InstructionBIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.lflang.analyses.evm; | ||
|
||
public class InstructionBIT extends Instruction { | ||
public InstructionBIT() { | ||
this.opcode = Opcode.BIT; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
core/src/main/java/org/lflang/analyses/evm/InstructionDU.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.lflang.analyses.evm; | ||
|
||
import org.lflang.TimeValue; | ||
|
||
public class InstructionDU extends Instruction { | ||
|
||
/** The physical time point to delay until */ | ||
TimeValue releaseTime; | ||
|
||
public InstructionDU(TimeValue releaseTime) { | ||
this.opcode = Opcode.DU; | ||
this.releaseTime = releaseTime; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "DU: " + releaseTime; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
core/src/main/java/org/lflang/analyses/evm/InstructionINC2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.lflang.analyses.evm; | ||
|
||
public class InstructionINC2 extends Instruction { | ||
public InstructionINC2() { | ||
this.opcode = Opcode.INC2; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
core/src/main/java/org/lflang/analyses/evm/InstructionJMP.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.lflang.analyses.evm; | ||
|
||
public class InstructionJMP extends Instruction { | ||
public InstructionJMP() { | ||
this.opcode = Opcode.JMP; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
core/src/main/java/org/lflang/analyses/evm/InstructionSAC.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.lflang.analyses.evm; | ||
|
||
public class InstructionSAC extends Instruction { | ||
public InstructionSAC() { | ||
this.opcode = Opcode.SAC; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
core/src/main/java/org/lflang/analyses/evm/InstructionSTP.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.lflang.analyses.evm; | ||
|
||
public class InstructionSTP extends Instruction { | ||
public InstructionSTP() { | ||
this.opcode = Opcode.STP; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
core/src/main/java/org/lflang/analyses/evm/InstructionWU.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.lflang.analyses.evm; | ||
|
||
import org.lflang.generator.ReactionInstance; | ||
|
||
public class InstructionWU extends Instruction { | ||
|
||
/** The reaction this WU instruction waits on */ | ||
ReactionInstance reaction; | ||
|
||
/** ID of the worker processing the reaction */ | ||
int worker; | ||
|
||
public InstructionWU(int worker, ReactionInstance reaction) { | ||
this.opcode = Opcode.WU; | ||
this.worker = worker; | ||
this.reaction = reaction; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "WU: worker " + worker + " finish " + reaction; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters