stffrdhrn / sdram-controller

Verilog SDRAM memory controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rd_enable latching (or lack of it)

feldi12 opened this issue · comments

Hi!
I was going through your code and I noticed, that if the controller is in any of the "REF" states, the busy signal is low. However, when rd_enable signal goes high, the address of read operation will be read and latched, but the rd_enable itself will not start read, as this can only start if the controller is in "IDLE" state. This forces user to leave the address and rd_enable signals high until busy signal goes high, which makes code further on much more complicated.

  1. Am I reading it right, or have I missed something?
  2. How about latching the rd/wr commands, and supplementing busy signal logic? I think that would solve the problem...

Hello, thanks for the feedback. It makes sense I can't remember why I didn't do that. Perhaps I was just trying to be lazy or make it more simple?

If you would like to make a patch and test it out it would be great.