Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - vhdl testbench help

 
Thread Tools Search this Thread
Old 10-27-2009, 10:02 AM   #1
Default vhdl testbench help


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;


niyander
  Reply With Quote
Old 10-27-2009, 10:12 AM   #2
Pieter Hulshoff
 
Posts: n/a
Default Re: vhdl testbench help
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


Pieter Hulshoff
  Reply With Quote
Old 10-27-2009, 08:27 PM   #3
niyander
 
Posts: n/a
Default Re: vhdl testbench help
On Oct 27, 3:12*pm, Pieter Hulshoff <phuls...@xs4all.nl> wrote:
> 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


hello Pieter,

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


niyander
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xilinx 7.1 and testbench error boitsas Software 0 01-15-2008 04:14 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46