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

Writing into registers in simulation #22

Open
AnotherKamila opened this issue Jun 18, 2019 · 1 comment
Open

Writing into registers in simulation #22

AnotherKamila opened this issue Jun 18, 2019 · 1 comment

Comments

@AnotherKamila
Copy link

Hello,

My project relies on the control plane writing the right data into registers. Therefore, in order to be able to test the functionality in the simulation, I would need to be able to write into registers as part of the simulation (i.e. when I run vivado_sim.bash). Can you please give me some pointers for how to do that?

If I can figure out how to do that, I could make that functionality available from the commands.txt file, so that it is easy to use for everyone.

@sibanez12
Copy link
Collaborator

There is currently no good way of configuring P4 registers before running the SDNet vivado_sim.bash script. However, you can configure registers when running the full SUME simulation. See the switch_calc project for an example: https://github.com/NetFPGA/P4-NetFPGA-live/blob/master/contrib-projects/sume-sdnet-switch/projects/switch_calc/simple_sume_switch/test/sim_switch_ctrlWrites/run.py#L131

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