Try implementing bcast option in gen_testdata

This commit is contained in:
Nico Schottelius 2019-06-12 19:46:22 +02:00
parent 896f0b744c
commit 47d49638a8
2 changed files with 20 additions and 5 deletions

View File

@ -4167,6 +4167,20 @@ After reprogram AND reboot:
10:00.0 Memory controller: Xilinx Corporation Device 7028
*** 2019-06-12: try broadcasting
#+BEGIN_CENTER
[SW] CAM_EnableDevice() - done
[2274090] INFO: finished packet stimulus file
[2735572] ERROR: tuple mismatch for packet 1
expected < tuple_out_digest_data, tuple_out_sume_metadata > = < 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000001040000 >
actual < tuple_out_digest_data, tuple_out_sume_metadata > = < 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000055040000 >
$finish called at time : 2735572 ps : File "/home/nico/master-thesis/netpfga/minip4/nf_sume_sdnet_ip/SimpleSumeSwitch/Testbench/Check.v" Line 120
exit
#+END_CENTER
-> mismatch when using expPkt on all ports
-> trying to use bcast fails due to programming errors
** References / Follow up
*** RFC 791 IPv4 https://tools.ietf.org/html/rfc791

View File

@ -26,11 +26,12 @@ nf_expected[2] = []
nf_expected[3] = []
nf_port_map = {
"nf0":0b00000001,
"nf1":0b00000100,
"nf2":0b00010000,
"nf3":0b01000000,
"dma0":0b00000010
"nf0": 0b00000001,
"nf1": 0b00000100,
"nf2": 0b00010000,
"nf3": 0b01000000,
"dma0": 0b00000010,
"bcast":0b01010101
}
nf_id_map = {