Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler for PSA #873

Closed
Blandine11 opened this issue Mar 3, 2020 · 5 comments
Closed

Compiler for PSA #873

Blandine11 opened this issue Mar 3, 2020 · 5 comments

Comments

@Blandine11
Copy link

Hello Guys,
Can you help me, please?
I want to know if the implémentation of PSA architecture is finish now.
If yes, what is the compiler for P4 code based on PSA architecture.
Can we use p4c or p4c-bm2-ss to compile code based on PSA architecture?

I will appreciate your help

@jafingerhut
Copy link
Contributor

The implementation of PSA has been worked on, but is still incomplete. It is in a state where a few very simple programs compile and work, but most programs either do not compile, or compile to incorrect results that do not behave as they should. It seems likely that someone will be working towards finishing it by the second half of 2020.

@Blandine11
Copy link
Author

Ok Guy,

Thank you so much.

Regards

@Blandine11 Blandine11 reopened this Mar 3, 2020
@Blandine11
Copy link
Author

Excuse me,
So the compiler used to (or try to) compile PSA code today is p4c compiler?

Regards

@jafingerhut
Copy link
Contributor

If you set up an Ubuntu Linux machine (or virtual machine) version 16.04 or 18.04 and install behavioral-model, p4c, etc. for example using a shell script like the one described here: https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md

then you can use these commands to compile a few working PSA architecture programs that are included as test programs with the p4c compiler:

cd p4c/testdata/p4_16_samples
p4c-bm2-psa psa-counter1.p4

Then run the command psa_switch instead of simple_switch with the compiled BMv2 JSON file that p4c-bm2-psa produces.

There are relatively simple programs that fail to produce working code, or do not compile, a few of which are attached to these issues:

p4lang/p4c#1918
p4lang/p4c#1919
p4lang/p4c#1827
p4lang/p4c#1329

@Blandine11
Copy link
Author

Ok Guy,

Thank you ;)

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants