-
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.
Always insert instantiation statement at the end of the local stateme…
…nt list
- Loading branch information
Showing
54 changed files
with
1,689 additions
and
1,552 deletions.
There are no files selected for viewing
Submodule inja
added at
d462b9
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#include <core.p4> | ||
|
||
extern MyCounter<I> { | ||
MyCounter(bit<32> size); | ||
void count(in I index); | ||
} | ||
|
||
typedef bit<10> my_counter_index_t; | ||
typedef MyCounter<my_counter_index_t> my_counter_t; | ||
|
||
control Inner(my_counter_t counter_set) { | ||
action count(my_counter_index_t index) { | ||
counter_set.count(index); | ||
} | ||
|
||
table counter_table { | ||
actions = { | ||
count; | ||
} | ||
} | ||
|
||
apply { | ||
counter_table.apply(); | ||
} | ||
} | ||
|
||
control Test() { | ||
my_counter_t(1024) counter_set; | ||
|
||
apply { | ||
Inner.apply(counter_set); | ||
} | ||
} | ||
|
||
control C(); | ||
package P(C _c); | ||
P(Test()) 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
488 changes: 244 additions & 244 deletions
488
testdata/p4_16_samples_outputs/dash/dash-pipeline-frontend.p4
Large diffs are not rendered by default.
Oops, something went wrong.
488 changes: 244 additions & 244 deletions
488
testdata/p4_16_samples_outputs/dash/dash-pipeline-midend.p4
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.