-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more tests; support internal shared variable sync
- Loading branch information
Showing
9 changed files
with
69 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defproc my_source(chan!(enum<1>) X) { | ||
chp { | ||
X!0; X!4; X!3 | ||
} | ||
} | ||
|
||
defproc my_sink(chan?(enum<1>) X) { | ||
enum<1> x; | ||
chp { | ||
*[ X?x; log(x) ] | ||
} | ||
} | ||
|
||
defproc test() { | ||
my_source s; | ||
my_sink t(s.X); | ||
} |
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,15 @@ | ||
defproc test() | ||
{ | ||
bool xr, xa; | ||
|
||
chp { | ||
(xr-; xr+; [xa]; xr-; [~xa]; log ("hi"); | ||
xr+; [xa]; xr-; [~xa]; log ("hi"); | ||
xr+; [xa]; xr-; [~xa]; log ("hi"); | ||
xr+; [xa]; xr-; [~xa]; log ("hi"); | ||
xr+; [xa]; xr-; [~xa]; log ("hi"); | ||
xr+; [xa]; xr-; [~xa]; log ("hi") ) | ||
|| | ||
(xa-; *[ [xr]; xa+; [~xr]; xa- ]) | ||
} | ||
} |
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,4 @@ | ||
WARNING: my_sink<>: substituting chp model (requested prs, not found) | ||
WARNING: my_source<>: substituting chp model (requested prs, not found) | ||
** FATAL ** Process my_sink<>: enumeration assigned illegal value | ||
** Max=1; Value: 4 (0x4) |
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 @@ | ||
[ 10] <t> 0 |
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 @@ | ||
WARNING: test<>: substituting chp model (requested prs, not found) |
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,6 @@ | ||
[ 50] <> hi | ||
[ 90] <> hi | ||
[ 130] <> hi | ||
[ 170] <> hi | ||
[ 210] <> hi | ||
[ 250] <> hi |