-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get stuck when load software.bin through /dev/ttyUSB1 #787
Comments
@limingxuan-pku thank you for the report. I will try to reproduce the issue. It could be that the integration of Symbiflow tools with CFU Playground has broken somehow. |
@limingxuan-pku , I have some updates. Using the project I did a further experiment; I made the CFU even simpler, just a bitwise-XOR as follows in //
// select output -- note that we're not fully decoding the 3 function_id bits
//
- assign rsp_payload_outputs_0 = cmd_payload_function_id[0] ?
- cmd_payload_inputs_1 :
- cmd_payload_inputs_0 ;
+ assign rsp_payload_outputs_0 = cmd_payload_inputs_1 ^ cmd_payload_inputs_0 ;
After I made this change, it worked reliably for me. Note that the software isn't even using CFU instructions in this project. I suspect that this change in the design led the tools to randomly end up with a better place/route solution. The main challenge is this, the lack of feedback from the tools whether they think they have met timing. Another experiment we could do is reducing the clock rate to a bit lower than the currently used 75MHz. However, we can't lower it too much, or else the DDR memory will start malfunctioning (it has a minimum clock rate requirement). |
The unmodified make clean
make USE_SYMBIFLOW=1 EXTRA_LITEX_ARGS="--sys-clk-freq=70000000" prog
make USE_SYMBIFLOW=1 EXTRA_LITEX_ARGS="--sys-clk-freq=70000000" load |
@tcal-x Thanks for your tests. I've tried your suggestions but it doesn't work for me.
The With all the environment and running parameter the same (use symbiflow, sys_clk=75MHz, arty a7 35t board, project under
|
Thanks @limingxuan-pku I will try with 20.04 when time allows. Thanks again for the clarifying details. |
On a new 20.04LTS VM on Google Cloud, using all tools from the Conda packages that I get from running
|
On my personal laptop, 18.04LTS, I get:
so almost the same. |
@tcal-x Thanks for your tests! So the problem is most likely due to my VM environment. I'll rebuild my VM to see if it works. |
I have raised a similar question #775 before, but this time it's quite a different case.
My working environment is VM Ubuntu 20.04, arty A7 35T board, symbiflow tools and the project I use is the
proj_template
underproj
directory, which is one of the built-in default project.When I run
make load
, it will be stuck at this command:/home/limx/CFU-Playground/soc/bin/litex_term --speed 1843200 --kernel /home/limx/CFU-Playground/proj/proj_template/build/software.bin /dev/ttyUSB1
I have tried the following methods to solve it, but failed:
Ctrl + C
or other keys on my keyboard. PressCtrl + C
twice quickly will end this command and other ways will cause nothing to happen.CFU-Playground
folder and rebuild everything bygit clone
.The text was updated successfully, but these errors were encountered: