stimuli.sh 477 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. function pci {
  3. PCILIB_PATH="/root/pcitool"
  4. LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
  5. }
  6. rm -f bench.out
  7. echo "Set FFFF the frame space .."
  8. pci -w 0x9180 fff
  9. echo "Set the number of frames .."
  10. pci -w reg9170 55
  11. pci --start-dma dma1
  12. echo "Send frame request ... "
  13. pci -w control 1f1
  14. usleep 100000
  15. pci -w control 1e1
  16. echo "Enable Readout ... "
  17. pci -w control 3e1
  18. pci -r dma1 -o bench.out --multipacket
  19. pci -w control 1e1
  20. pci --stop-dma dma1