-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added README.md in 'pna_nic' and 'portable_common' directories
Signed-off-by: Rupesh Chiluka <rchiluka@marvell.com>
- Loading branch information
1 parent
367100d
commit fb4497d
Showing
7 changed files
with
56 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# BMv2 `pna_nic` Backend | ||
|
||
This directory contains components specific to the BMv2's PNA NIC (Portable NIC Architecture) backend in the P4C compiler. The files in this folder depend on each other, on the files in the `bmv2/common` and `portable_common` directories. Most of the classes are inherited from the classes in the `portable_common` directory. | ||
|
||
Output Binary: `p4c-bm2-pna` | ||
|
||
#### pnaProgramStructure.h, pnaProgramStructure.cpp | ||
|
||
Defines and implements the program structure (metadata, parsers, controls, and deparsers) and parsing logic specific to the BMv2's PNA NIC backend. | ||
|
||
##### midend.h, midend.cpp | ||
|
||
Defines the mid-end processing of the PNA NIC compiler. Performs various transformations and optimizations on the program's Intermediate Representation (IR). | ||
|
||
##### options.h, options.cpp | ||
|
||
Manages the command-line options for the PNA NIC compiler. | ||
|
||
##### pnaNic.h, pnaNic.cpp | ||
|
||
Provides backend implementation to the BMv2's PNA NIC compiler. | ||
|
||
##### main.cpp | ||
|
||
Sets up compilation environment, integrates various components, and executes the PNA NIC compiler. | ||
|
||
##### version.h.cmake | ||
|
||
Defines macros containing version information for the PNA NIC compiler. |
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 @@ | ||
# `portable_common` | ||
|
||
This directory contains reusable components common to both the `psa_switch` and `pna_nic` backends. | ||
|
||
##### midend.h, midend.cpp | ||
|
||
Defines the common mid-end processing of both the `psa_switch` and `pna_nic` backends. | ||
|
||
##### options.h, options.cpp | ||
|
||
Defines the common command-line options of both the `psa_switch` and `pna_nic` backends. | ||
|
||
##### portable.h, portable.cpp | ||
|
||
Defines common functionalities that generate representations of P4 programs. | ||
|
||
---- | ||
|
||
The files `portableProgramStructure.h` and `portableProgramStructure.cpp` are in the `backends/common` directory. | ||
|
||
#### portableProgramStructure.h, portableProgramStructure.cpp | ||
|
||
Defines and implements the common program structure of both the `psa_switch` and `pna_nic` backends. |
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
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