blach100
Junior Member level 3
- Joined
- Jul 15, 2011
- Messages
- 30
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,483
Hello,
I have a problem connecting two modules, I'm trying to design a stack using single port RAM,
the RAM has an inout port for data, to read from and to write with.
The STACK which is the top level module has two signals one input and the other output
ENTITY stack IS
now, when I try to connect the two modules using port map, I write:
I get an error saying
how can I connect the input and output of the stack with the inout signal of the RAM?
thanks
I have a problem connecting two modules, I'm trying to design a stack using single port RAM,
the RAM has an inout port for data, to read from and to write with.
HTML:
ENTITY RAM IS
PORT (address :in std_logic_vector (15 downto 0);-
- address Input
data :inout std_logic_vector (15 downto 0); --data bi-directional
);
END ENTITY;
The STACK which is the top level module has two signals one input and the other output
ENTITY stack IS
HTML:
PORT (STin : IN std_logic_vector; --Input Data
reset, clk, push, pop : IN std_logic; -- Reset, Clock, Push,and Pop Signals
STout : OUT std logic vector -- Output Data
END ENTITY;
now, when I try to connect the two modules using port map, I write:
HTML:
SP_RAM_controler : component SP_RAM
port map(
data => STin,
data => STout,
);
I get an error saying
HTML:
Cannot assign to object "STin" of mode IN.
how can I connect the input and output of the stack with the inout signal of the RAM?
thanks