I’m trying to read the output from the AXI master.
I expect that when you issue:
print(c)
It will print the sum of the two matrices. However all I get are 0’s.
I don’t see what I am missing.
After you start the IP and assign the input matrix addresses I would assume that once it’s started it will run and output C.
ip.write(0x00, 0x81)
fpga_state = ip.read(0x00)
## comented out
#max_try = 100
#while fpga_state != 6 and fpga_state != 4:
# fpga_state = ip.read(0x00)
# max_try = max_try -1
# if max_try == 0:
# print("ERROR: Can't go ahead")
# ip.write(0x00, 4)
# raise KeyboardInterrupt
print(fpga_state )
ip.write(0x00, 0x81)
c.sync_from_device()