-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mihai Budiu <[email protected]>
- Loading branch information
Mihai Budiu
committed
Nov 18, 2022
1 parent
fabd91c
commit 15c5504
Showing
11 changed files
with
107 additions
and
24 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
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 @@ | ||
#include <core.p4> | ||
|
||
extern E { | ||
E(list<list<bit<32>>> data); | ||
void run(); | ||
} | ||
|
||
control c() { | ||
E( | ||
(list<list<bit<32>>>) | ||
{ | ||
(list<bit<32>>){10, 6, 3}, | ||
(list<bit<32>>){5, 2} | ||
}) e; | ||
apply { | ||
e.run(); | ||
} | ||
} | ||
|
||
control C(); | ||
package top(C _c); | ||
|
||
top(c()) main; |
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 |
---|---|---|
|
@@ -15,4 +15,3 @@ control c() { | |
control C(); | ||
package top(C _c); | ||
top(c()) main; | ||
|
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 @@ | ||
#include <core.p4> | ||
|
||
extern E { | ||
E(list<list<bit<32>>> data); | ||
void run(); | ||
} | ||
|
||
control c() { | ||
E((list<list<bit<32>>>){(list<bit<32>>){32w10,32w6,32w3},(list<bit<32>>){32w5,32w2}}) e; | ||
apply { | ||
e.run(); | ||
} | ||
} | ||
|
||
control C(); | ||
package top(C _c); | ||
top(c()) main; |
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 @@ | ||
#include <core.p4> | ||
|
||
extern E { | ||
E(list<list<bit<32>>> data); | ||
void run(); | ||
} | ||
|
||
control c() { | ||
@name("c.e") E((list<list<bit<32>>>){(list<bit<32>>){32w10,32w6,32w3},(list<bit<32>>){32w5,32w2}}) e_0; | ||
apply { | ||
e_0.run(); | ||
} | ||
} | ||
|
||
control C(); | ||
package top(C _c); | ||
top(c()) main; |
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,26 @@ | ||
#include <core.p4> | ||
|
||
extern E { | ||
E(list<list<bit<32>>> data); | ||
void run(); | ||
} | ||
|
||
control c() { | ||
@name("c.e") E((list<list<bit<32>>>){(list<bit<32>>){32w10,32w6,32w3},(list<bit<32>>){32w5,32w2}}) e_0; | ||
@hidden action list8l16() { | ||
e_0.run(); | ||
} | ||
@hidden table tbl_list8l16 { | ||
actions = { | ||
list8l16(); | ||
} | ||
const default_action = list8l16(); | ||
} | ||
apply { | ||
tbl_list8l16.apply(); | ||
} | ||
} | ||
|
||
control C(); | ||
package top(C _c); | ||
top(c()) main; |
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 @@ | ||
#include <core.p4> | ||
|
||
extern E { | ||
E(list<list<bit<32>>> data); | ||
void run(); | ||
} | ||
|
||
control c() { | ||
E((list<list<bit<32>>>){ (list<bit<32>>){ 10, 6, 3 }, (list<bit<32>>){ 5, 2 } }) e; | ||
apply { | ||
e.run(); | ||
} | ||
} | ||
|
||
control C(); | ||
package top(C _c); | ||
top(c()) main; |
Empty file.