rd_ready signal missing
navrajkambo opened this issue · comments
I noticed that the test bench you've provided doesn't include the rd_ready
signal, and was wondering if you could expand on how that signal goes high or low with respect to the busy signal.
For my application, i'm writing and reading data to RAM between an audio codec.
Audio ADC Fifo -> SDRAM Controller + Custom Logic -> Audio DAC Fifo
I've designed a module which communicates to your SDRAM controller and the FIFOs for the Audio Codec, however I'm unsure about how the read ready signal is to be used. I've made a test bench of how I think the signals interact, and wouldn't mind your input (specifically on when the read ready signal goes high).
More information on my setup:
ivalid
goes highiready
goes high (data is transferred whenivalid
andiready
are both high)write
goes high andwdata
gets databusy
toggleswrite
goes low whenbusy
is seenwaddr
incrementedread
goes highbusy
togglesread
goes low whenbusy
is seen- data is collected from
rdata
whenbusy
is low and read ready (rdy
) is high raddr
incrementedovalid
goes high and waits foroready
- data is transferred to Audio DAC when
ovalid
andoready
are both high
Notes
- audio samples at 48kHz stereo (96kHz actually since L channel then R channel every period)
- switch between L and R channel using
clk_lr_aud
(48kHz) - have two of these custom modules feed into your ram controller, being switched by
clk_lr_aud
signal - i've sped up the audio clks for the simulation
- i'm using the DE1-SoC with the Wolfson WM7831 codec and 64MB of ram
Hello, I have a similar project which uses my sdram-controller for audio recording.
https://github.com/stffrdhrn/digi-recorder
The rd_ready
signal indicates that the read data is ready on the rd_data
bus. The busy
signal indicates that the controller is busy with a read or write transaction and you should not issue any commands during that time.
Hey, thanks for the help! Your module works as expected and I was able to successfully implement the SDRAM controller between the codec FIFOs. I'll be posting my project here soon. Again, thanks. You are a life saver!