spatial icon indicating copy to clipboard operation
spatial copied to clipboard

fix the issue of reloading AFI for different runs

Open hzhang86 opened this issue 6 years ago • 1 comments

I found the cause of having to reload AFI for runs with different input. It's because the FringeContextAWS.h falsely reset the register in the beginning of ''load'' when fpga_pci is not attached yet. These two statements should be moved to right before starting the fpga execution (inside "run"), then result will be updated for new input in each run.

aws_poke(SCALAR_CMD_BASE_ADDR + RESET_REG_ADDR, 1); aws_poke(SCALAR_CMD_BASE_ADDR + RESET_REG_ADDR, 0);

Besides, check_slot_config(slot_id) should be called before fpga_pci_attach(..) logically.

Thanks

hzhang86 avatar Jan 12 '19 00:01 hzhang86

Thanks for the help!

mattfel1 avatar Jan 25 '19 19:01 mattfel1