G
GDan
Guest
Hi,
I've run through some tutorials on VHDL. Just playing with ModelSim
and decided to start using INOUT for some bi-directional logic. All of
the examples so far use either IN or OUT. The trouble I'm having is
that even when I assign a value to the signal in a test bench, all I
get on the waveform is 'U' state.
So something like...
test : INOUT std_logic
testasclk: PROCESS
BEGIN
CLOCK_LOOP : LOOP
test <= '0';
WAIT FOR 100 ns;
test <= '1';
WAIT FOR 100 ns;
END LOOP CLOCK_LOOP;
END PROCESS;
In this case I know I only using it as an output but it's one example
that generates the trouble I'm having.
Thanks
GD
I've run through some tutorials on VHDL. Just playing with ModelSim
and decided to start using INOUT for some bi-directional logic. All of
the examples so far use either IN or OUT. The trouble I'm having is
that even when I assign a value to the signal in a test bench, all I
get on the waveform is 'U' state.
So something like...
test : INOUT std_logic
testasclk: PROCESS
BEGIN
CLOCK_LOOP : LOOP
test <= '0';
WAIT FOR 100 ns;
test <= '1';
WAIT FOR 100 ns;
END LOOP CLOCK_LOOP;
END PROCESS;
In this case I know I only using it as an output but it's one example
that generates the trouble I'm having.
Thanks
GD