zf3 / psram-tang-nano-9k

An open source PSRAM/HyperRAM controller for Sipeed Tang Nano 9K / Gowin GW1NR-LV9QN88PC6/15 FPGA
Apache License 2.0
59 stars 8 forks source link

Read operation doesn't return #7

Closed rs1909 closed 5 months ago

rs1909 commented 6 months ago

IMG_20240519_113323353_HDR

The attached picture: blue trace: the "busy" output of the controller, the yellow trace the 'read' input signal.

The write operation does finish, but the read operation does not finish with the busy line constantly on. There is plenty of time for this to finish, the read is a 781kHz, which is 96 clock cycles and read should finish in at most 15.

After looking at the code, the width of the read clock should not matter, it might just do multiple reads, but the busy line should go down eventually.

rs1909 commented 5 months ago

There is something with the GOWIN IDE, because I have added something unrealted to this to the project and now it seems to work. Closing for now.