Open bala122 opened 1 year ago
@bala122 , yes, this is probably related to https://github.com/google/CFU-Playground/issues/657. What cache sizes are you using? I think we saw it specifically when there was no dCache.
I'm not sure if I mentioned it explicitly in the other issue, but there is no way to add --safe
to the litex_term
line other than cutting and pasting the entire line and adding --safe
and rerunning. With --safe
, the upload speed is MUCH slower.
I have not tried reducing the UART_SPEED, but that may be worth trying. You would need to set it to the same value (lower than the default 1843200) for both the bitstream
/prog
step and the load
step.
I'm using around 32B d-cache (16B block), 512B I-cache and 64B L2. It wasn't working with this config I changed D-cache to 64B, 32B block, it worked. Is the low d-cache a problem? How is that so?
Another weird issue I've encountered is that, when working with big model sizes, calls to the cfu unit are not returning the correct value in the long run. This could be a synthesis issue, but isnt reflected on synthesis. However , upon using a print statement to test the value, it seems to be working fine. For instance:
val_to_be returned= cfu_opx(x,x,x)
val_to_be_returned_test = <something>;
//printf("Check: val test %d val returned %d",val_to_be_returned_test.val_to_be_returned)
On uncommenting the print, it works fine
Another way this issue wasn't coming up was that I added some dummy statements before the main code and it was working fine. I'm guessing there is some intricate bug in Vexriscv with respect to cfu function calls.
Hi @bala122 , I've been trying to reproduce the issue myself and have not been successful (I have not seen either of the software upload issues). I'm am glad you found some working configurations. Yes, I think there are many variables that interact, and perhaps a bug, so that you see the issue only sometimes.
Hi @tcal-x and @mithro , I'm getting the following error on uploading to the arty A7 board upon running the make load command. This hasn't happened before and I'm not sure of the reason why it has come up now.
I'm getting the above error while running with vivado @ 100MHz even though it meets timing. On running at 75MHz it meets timing and there is no error , although upload is slow. The speed is as shown below.
I've tried reducing the speed as well as pointed out in some other issue. When I tried inserting --safe, the word "safe" wasn't popping out anywhere and it wasn't working.
Please let me know about this as soon as possible. I need the board urgently. Thanks a lot, Bala.