P
Pino
Guest
I'm not completely clear on how to use bidirectional ports in VHDL for
use with connecting to SDRAM shared data lines. How do I specify this
in my state machine if I am to read and then write to the line?
An example:
TX_RX_BUS :INOUT STD_LOGIC_VECTOR(31 DOWNTO 0);
....
CASE state IS
WHEN READ =>
TX_RX_BUS (31 DOWNTO 0) <= TX_RX_BUS (31 DOWNTO 0);
WHEN WRITE =>
TX_RX_BUS (31 DOWNTO 0) <= TX_RX_BUS (31 DOWNTO 0);
.....etc..
This is what I wrote in my code, but I am unclear what this actually
means. I know this is incorrect. What I want is somehow to place the
data content on the TX_RX_BUS line connected to my SDRAM, and then
when the SDRAM is in the READ state I can capture the contents of the
same bus as an input line.
Can anyone help me understand whether this is valid, and what the best
way to handle a shared bus for memory?
Regards,
Pino
use with connecting to SDRAM shared data lines. How do I specify this
in my state machine if I am to read and then write to the line?
An example:
TX_RX_BUS :INOUT STD_LOGIC_VECTOR(31 DOWNTO 0);
....
CASE state IS
WHEN READ =>
TX_RX_BUS (31 DOWNTO 0) <= TX_RX_BUS (31 DOWNTO 0);
WHEN WRITE =>
TX_RX_BUS (31 DOWNTO 0) <= TX_RX_BUS (31 DOWNTO 0);
.....etc..
This is what I wrote in my code, but I am unclear what this actually
means. I know this is incorrect. What I want is somehow to place the
data content on the TX_RX_BUS line connected to my SDRAM, and then
when the SDRAM is in the READ state I can capture the contents of the
same bus as an input line.
Can anyone help me understand whether this is valid, and what the best
way to handle a shared bus for memory?
Regards,
Pino