-
See the README.md file in this directory for an experiment I tried, and how it seems to be accessing information about a field's underlying `bit` type, but not its `typedef`, even though the output fr…
-
Using p4c.load_table_data changes the input table (adding a `row.names` column. This is unexpected.
If the column needs to be added, maybe that should be done on a copy?
```
df = pd.DataFrame([
…
-
I am using p4c (version: 1.2.0 (SHA ebd446fa BUILD:debug) ) and simple_switch (version: 1.13.0-498202d9).
I wanted to emit a header stack and to set value of the header stack in the parser, using me…
-
The latest open source `p4test` as of 2023-Jul-21 source p4lang/p4c source code allows this definition of an extern without any errors or warnings, as I would expect:
```
extern Foo {
Foo();
}…
-
I'm trying to port some P4 programs originally written for BMv2 to the XDP target, but I'm struggling to describe an equivalent behavior for registers and hash functions. Is there any workaround I cou…
-
I believe that this v1model architecture P4_16 program uses direct type invocation multiple times in the same scope (of the ingress control), on the control named `tableControl`: https://github.com/ja…
-
Our CMake setup is rather slow. The slowness comes from the test files we generate unconditionally with the `p4c_add_tests` every time time we run `cmake`. It would be nice to find a way to cache the …
-
The Tofino code replaces/moves nodes in several places, such as during V1 -> TNA translation. During this translation, the compiler moves code from the VerifyChecksum block into the Parser block, tran…
-
Hi All, we are trying to port v1model testcases for dpdk(PSA) essentially for more coverage and make it part of p4c repo.
I see there are two way to achieve it
1) Copy the v1model testcases in new …
-
Currently, P4C calls into [cc](https://github.com/p4lang/p4c/blob/main/frontends/common/parser_options.cpp#L410) to perform preprocessing on P4 programs.
This can cause issues in environments whic…