NetFPGA / P4-NetFPGA-public

P4-NetFPGA wiki
103 stars 31 forks source link

Alternative for config_writes.sh script #31

Closed harshgondaliya closed 5 years ago

harshgondaliya commented 5 years ago

Following script is used to write table entries into the register of NetFPGA:

#!/bin/bash

${SUME_SDNET}/sw/sume/rwaxi -a 0x44020050 -w 0x11111108
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020054 -w 0x00000811
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020080 -w 0x00000101
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020040 -w 0x00000001
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020050 -w 0x22222208
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020054 -w 0x00000822
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020080 -w 0x00000104
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020040 -w 0x00000001
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020050 -w 0x33333308
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020054 -w 0x00000833
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020080 -w 0x00000110
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020040 -w 0x00000001
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020050 -w 0x44444408
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020054 -w 0x00000844
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020080 -w 0x00000140
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020040 -w 0x00000001
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020050 -w 0xffffffff
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020054 -w 0x0000ffff
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020080 -w 0x00000155
${SUME_SDNET}/sw/sume/rwaxi -a 0x44020040 -w 0x00000001

But, for this operation, I need to have NetFPGA connected to the PCIe slot. If I want to operate NetFPGA in standalone mode (configure using Parallel Flash with only USB_JTAG connection), is there any alternative way to read/write register values into NetFPGA.

i.e. can we store table entries into registers of NetFPGA using the USB-JTAG port alone and with no connection to host through PCIe?

harshgondaliya commented 5 years ago

Since this issue is more relevant to P4-NetFPGA-live repository, I am closing this issue here and asking it on the other repository.