Open harshgondaliya opened 4 years ago
Hi @harshgondaliya, could you please try running the fred_basic
simulation with the following steps:
P4_PROJECT_NAME
in tools/settings.sh
to the value of fred_basic
.source tools/settings.sh
# Build Vivado core IP modules
cd $SUME_FOLDER/lib/hw/xilinx/cores/tcam_v1_1_0/ && make update && make
cd $SUME_FOLDER/lib/hw/xilinx/cores/cam_v1_1_0/ && make update && make
cd $SUME_SDNET/sw/sume && make
cd $SUME_FOLDER && make
# Build sume_riffa driver
make -C $DRIVER_FOLDER all
make -C $DRIVER_FOLDER install
modprobe sume_riffa
# Generate verilog code and API/CLI tools
make -C $P4_PROJECT_DIR
# Run SDNet simulation
cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch
./vivado_sim.bash
# Generate the scripts for NetFPGA SUME simulation
make -C $P4_PROJECT_DIR config_writes
make -C $P4_PROJECT_DIR install_sdnet
make -C $NF_DESIGN_DIR/test/sim_switch_default
# Run NetFPGA simulation
cd $SUME_FOLDER
./tools/scripts/nf_test.py sim --major switch --minor default
Hi @rst0git,
Thanks for the detailed steps!
The SUME simulation set by run.py
script in $NF_DESIGN_DIR/test/sim_switch_default
directory works perfectly fine for me.
But, the SUME simulation set by run.py
script in $NF_DESIGN_DIR/test/sim_switch_2flows
directory gives me the KeyError
that I described in my first post.
I think there is some error in line#97 of $NF_DESIGN_DIR/test/sim_switch_2flows/run.py
script.
nftest_regwrite(p4_externs['thresh']['base_addr'], THRESH)
fred_basic.p4
doesn't have any extern/register named 'thresh'
, still the above code is trying to fetch value for 'thresh'
extern.
fred_basic.p4
doesn't have any extern/register named 'thresh', still the above code is trying to fetch value for 'thresh' extern.
@harshgondaliya you are right, thresh_reg_rw
appears to have been replaced with a match-action table in commit aaace15
.
Oh, I see. Thanks for pointing out!
I am running the SUME SIMULATION for fred_basic example program by executing the following commands:
cd $NF_DESIGN_DIR/test/sim_switch_2flows && make
cd $SUME_FOLDER && ./tools/scripts/nf_test.py sim --major switch --minor 2flows
I face the following error from run.py script.
It seems like some previous step in the workflow has not worked properly. Any suggestions on debugging this?