Hello,
i'm new in VHDL and in simulation with ModelSim and it is the first time that i post something to a forum.
I have a problem to simulate in ModelSim InOut Ports:
For example:
process(clk1)
begin
if clk1'event and clk1='1' then
if wrreq='1' then temp<=R;
elsif rdreq='1' then R<=x"1111";
end if;
end if;
end process;
When I simluate this little process, I get in the WaveForm a red unknown X for the InOut Port R.
The simulation .do file is also only a little test file:
process
begin
wait for 100 ns;
--wrreq
R<=x"5555";
wrreq<='1';
rdreq<='0';
wait for 100 ns;
wrreq<='0';
rdreq<='0';
wait for 150 ns;
--rdreq
wrreq<='0';
rdreq<='1';
wait for 150 ns;
wrreq<='0';
rdreq<='0';
wait;
end process;
Perhaps someone has an idea and can help me.
Thank you.
Chris
i'm new in VHDL and in simulation with ModelSim and it is the first time that i post something to a forum.
I have a problem to simulate in ModelSim InOut Ports:
For example:
process(clk1)
begin
if clk1'event and clk1='1' then
if wrreq='1' then temp<=R;
elsif rdreq='1' then R<=x"1111";
end if;
end if;
end process;
When I simluate this little process, I get in the WaveForm a red unknown X for the InOut Port R.
The simulation .do file is also only a little test file:
process
begin
wait for 100 ns;
--wrreq
R<=x"5555";
wrreq<='1';
rdreq<='0';
wait for 100 ns;
wrreq<='0';
rdreq<='0';
wait for 150 ns;
--rdreq
wrreq<='0';
rdreq<='1';
wait for 150 ns;
wrreq<='0';
rdreq<='0';
wait;
end process;
Perhaps someone has an idea and can help me.
Thank you.
Chris