]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - tools/rbt2c.pl
   3 # This tool converts a Xilinx xxx.rbt FPGA bitstream to a table that will 
   4 # compile as C source code. The output format is DWORDs, MSB first. 
   8 print "// Generated by rbt2c.pl, do not edit!\n\n"; 
  17 #include <proxmark3.h> 
  19 const DWORD FpgaImage[] = { 
  25         for $b (split(//, $_)) { 
  33         printf("\t0x%08x,\n", $v); 
  39 const DWORD FpgaImageLen = sizeof(FpgaImage) / sizeof(FpgaImage[0]);