-
Notifications
You must be signed in to change notification settings - Fork 888
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
need calrification #4
Comments
Note that the code in the
When you want to check exactly what a primitive is doing, you can directly refer to this file (https://github.com/p4lang/behavioral-model/blob/master/targets/simple_switch/primitives.h) which implements each standard primitive (usually only a few lines of code per primitive). You can get some basic help for CLI commands by typing |
great help thanks a ton |
Hi Antonin,
file register.p4
line 68, 69
modify_field_rng_uniform(meta.register_tmp, 100, 200);
register_write(my_register, register_idx, meta.register_tmp);
Could you please refer to some doc where I find what these functions are doing. Intuitively I can understand , but which parameter is getting written where is somewhat obscure to me.
Also I have seen these command used through cli at runtime to update the switch tables:
table_set_default m_table m_action
table_add m_table m_action aa:bb:cc:dd:ee:ff => 0
what does that do exactly. Again if there is any quick readme on that please share.
The text was updated successfully, but these errors were encountered: