jbush001 / NyuziProcessor

GPGPU microprocessor architecture
Apache License 2.0
1.96k stars 348 forks source link

run_fpga command does not work properly for me #201

Closed ergintr closed 1 year ago

ergintr commented 2 years ago

Hey sir, I synthesized the project from terminal and programmed it via quartus gui(could not do it via terminal), after that when I try ./run_fpga for different tests I just get yellow and white colors with no motion. The tests I have done are :

*NyuziProcessor/software/apps/plasma/run_fpga : I get the steady image below with no motion WhatsApp Image 2021-12-24 at 15 20 07(1)

jbush001 commented 2 years ago

When running in the testbench, the VGA signals aren't going to show anything interesting. That module is usually disabled, and, when it is not, the simulation doesn't run long enough to display interesting data, as will spend many cycles in the vblank (that module exists just to debug the memory transactions).

As for the other issues: these are very strange. To start out, have you made any changes to the code (could you do a quick 'git diff' to check)? Which version of the Quartus tools are you using?

ergintr commented 2 years ago

Thanks for reply, I use QUARTUS Lite 20.1 version. I have made the following changes :

jbush001 commented 2 years ago

Ah, thanks.

  1. The graphics seem to only be yellow and white, which suggests the R and G lines aren't connected properly (stuck at 1), with only the B line connected. I'd suggest checking the pin configuration.
  2. I don't believe the current SDRAM controller will work correctly if configured for 16 bits, as it doesn't handle the bus width and SDRAM width being different. This was a quick and dirty controller to bring up on my board, so it was hard coded as such. I'm a bit surprised this configuration works at all. If you can find another SDRAM module with an AXI interface (for example, I think Quartus may have one in their library), that might be easier, otherwise this would need a bit more logic to latch the upper and lower half words before putting them into the load_fifo (and likewise for stores).
jbush001 commented 1 year ago

Closing, as this is an unsupported configuration.

ergintr commented 1 year ago

Thank you, for your help Sir.

jbush001 commented 1 year ago

Sorry there wasn't a better answer.