Open AnotherKamila opened 5 years ago
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
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.