step1: git clone https://github.com/aws/aws-fpga.git $AWS_FPGA_REPO_DIR
step2: cd $AWS_FPGA_REPO_DIR
step3: source hdk_setup.sh
step4: source sdk_setup.sh
step5: sudo fpga-describe-local-image -S 0 -H
step6: sudo fpga-load-local-image -S 0 -I agfi-088bffb3ab91ca2d1 (#agfi-088.. is the unique name for the hello world project generated by amazon in shell version 0x04261818 )
step7: sudo fpga-describe-local-image -S 0 -R -H
I wnat to use fpga PCIe function using python
But How can i get this information
class FPGAFuncs(object):
def init(self):
self.slot = int(os.environ['BSWAPPER_SLOT'], 0)
self.AFI = os.environ['BSWAPPER_AFI'].encode('utf-8')
self.register = int(os.environ['BSWAPPER_REG'], 0)
logger.info("Slot to be loaded: {}\nAFI: {}\nregister: 0x{:x}".format(self.slot, self.AFI, self.register))
fpga_mgmt.fpga_mgmt_init()
step1: git clone https://github.com/aws/aws-fpga.git $AWS_FPGA_REPO_DIR step2: cd $AWS_FPGA_REPO_DIR step3: source hdk_setup.sh step4: source sdk_setup.sh step5: sudo fpga-describe-local-image -S 0 -H step6: sudo fpga-load-local-image -S 0 -I agfi-088bffb3ab91ca2d1 (#agfi-088.. is the unique name for the hello world project generated by amazon in shell version 0x04261818 ) step7: sudo fpga-describe-local-image -S 0 -R -H I wnat to use fpga PCIe function using python But How can i get this information class FPGAFuncs(object): def init(self): self.slot = int(os.environ['BSWAPPER_SLOT'], 0) self.AFI = os.environ['BSWAPPER_AFI'].encode('utf-8') self.register = int(os.environ['BSWAPPER_REG'], 0) logger.info("Slot to be loaded: {}\nAFI: {}\nregister: 0x{:x}".format(self.slot, self.AFI, self.register)) fpga_mgmt.fpga_mgmt_init()