vhdl testbench help

N

niyander

hello

i have written a floating point multiplier and to verify its working i
have written a testbench. when i try to simulate the testbench in
modelsim i am not able to see any output.
there are lots of red lines with "uuuuuuuu..." written over them.
can some one tell me whats wrong with it? i have attached my code
below.
thanks

library ieee;
use ieee.std_logic_1164.all;

entity fpm_testbench is
end fpm_testbench;

architecture arch_tb of fpm_testbench is
signal inp1, inp2, op3 : std_logic_vector(31 downto 0);
signal clock, rdy, ena : std_logic;
begin
uut: entity work.multi(arch)
port map(in_a => inp1, in_b => inp2, out_c => op3, clk => clock,
ready => rdy, en => ena);

process
begin
clock <= '0';
wait for 1 us;
clock <= '1';
wait for 1 us;
end process;

process
begin
inp1 <= "01000000000000000000000000000000";
inp2 <= "01000000000000000000000000000000";
wait for 200 us;
assert false
report "Simulation Completed"
severity failure;
end process;
end arch_tb;
 
P

Pieter Hulshoff

Hello niyander,
i have written a floating point multiplier and to verify its working i
have written a testbench. when i try to simulate the testbench in
modelsim i am not able to see any output.
there are lots of red lines with "uuuuuuuu..." written over them.
can some one tell me whats wrong with it? i have attached my code
below.

I'll presume ena is an input to your design; it's not initialised (so 'U'), which will probably be reflected by the functioning of your design.

Kind regards,

Pieter Hulshoff
 
N

niyander

Hello niyander,


I'll presume ena is an input to your design; it's not initialised (so 'U'), which will probably be reflected by the functioning of your design.

Kind regards,

Pieter Hulshoff

hello Pieter,

thank you very much :), it solved my problem...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top