Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Unexpected output in Post-translate Simulation

Reply
Thread Tools

Unexpected output in Post-translate Simulation

 
 
500milesaway 500milesaway is offline
Junior Member
Join Date: Oct 2008
Posts: 1
 
      10-14-2008
Hello everyone,
I am very new in VHDL programming. For my work I am using ISE 10.1 and ModelSim XE III 6.3c. I am facing some problems in programming a simple code. the code is as follows:
------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity test is
port(
clk: in std_logic;
in_i1: in std_logic_vector(7 downto 0);
out_i1: out std_logic_vector(7 downto 0)
);
end test;

architecture a of test is
signal signed_out_i1: signed(7 downto 0);

begin

process(clk)
begin
if (clk'event and clk = '1') then
signed_out_i1 <= -signed(in_i1);
end if;
end process;

out_i1 <= std_logic_vector(signed_out_i1);

end a;
----------------------------------------

Problem # 1:

I want "signed_out_i1" will be changed to negative of "in_i1" at each clock change to 1. the behavioral (functional) simulation works alright and shows the expected result. But the in the Post-translate simulation the output is not as expected. I used the following testbench code:

--------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity test_tb is
end test_tb;

architecture test_tb_arch of test_tb is
component test
port(
clk: in std_logic;
in_i1: in std_logic_vector(7 downto 0);
out_i1: out std_logic_vector(7 downto 0)
);
end component;

signal clk: std_logic;
signal in_i1,out_i1: std_logic_vector(7 downto 0);

begin
aaaa: test port map(clk,in_i1,out_i1);

process
begin
clk<='0';
in_i1<="11111111";
wait for 50 ns;

clk<='1';
in_i1<="00000001";
wait for 50 ns;

clk<='0';
in_i1<="00000001";
wait for 50 ns;

clk<='1';
in_i1<="11111111";
wait for 50 ns;
end process;

end test_tb_arch;

configuration AOA of test_tb is
for test_tb_arch
end for;
end AOA;
-----------------------------------------------------------
the expected output should be either "00000001" or "11111111". But in the output it shows "11001001" and "00110111". Can anyone explain what is the problem?

Problem # 2:
Another problem is that when I run Post-map Simulation or Post-route simulation in ISE 10.1 the simulation output is not shown in Modelsim. It shows the following ERROR in ModelSim:

# ** Warning: Design size of 12274 statements or 0 non-Xilinx leaf instances exceeds ModelSim XE-Starter recommended capacity.
# Expect performance to be quite adversely affected.
# ** Error: (vsim-SDF-3250) netgen/map/test_map.sdf(0): Failed to find INSTANCE '/UUT'.
# Error loading design
# Error: Error loading design
# Pausing macro execution
# MACRO ./test_tb.mdo PAUSED at line 8

How to solve the problem?

I will be very greatful if anyone can help me to solve the problems.

Thanks and best regards,

Pantho
 
Reply With Quote
 
 
 
 
muddassir_asif muddassir_asif is offline
Junior Member
Join Date: Feb 2009
Posts: 2
 
      02-04-2009
Hi!
i am having same problem, i am using ISE 8.1 adn modelsim 5.7f.
when i run post-map and post route simulation, modelsim gives error...

** Error: (vsim-SDF-3250) C:/Xilinx/xorrngxilinx3/netgen/map/xorrng1_map.sdf(0): Failed to find INSTANCE '/UUT'.
# Error loading design

can anyone please help me!! i really need to do post-par simulation!
thanks in advance
 
Reply With Quote
 
 
 
 
joris joris is offline
Senior Member
Join Date: Jan 2009
Posts: 153
 
      02-04-2009
That means, you need to rename the component you are testing, to UUT. You currently have "aaaa" as name. Xilinx assumes the name to be "UUT"

In case you don't want to do that, you can:
  1. Right-click "Simulate Post-Place and Route model"
  2. Change the value of "ISim UUT Instance Name" (clicking the value field, it becomes editable)

Hope that helps,

Joris
 
Reply With Quote
 
Mike Mike is offline
Junior Member
Join Date: Mar 2009
Posts: 2
 
      03-11-2009
I the warning below when I tried to perform post PAR simulation.

Loading work.tb_post_par_sim(func)
# ** Warning: (vsim-3473) Component instance "uut : ssdn_bb_fpga_ert_timesim" is not bound.
# Time: 0 ps Iteration: 0 Region: /tb_post_par_sim File: tb_post_par_sim.vhd

Please help on resolve this. I already spent more than a week to deal with this problem.

Thank you very much.

Mike
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with post-route simulation / timing simulation jasperng VHDL 0 11-27-2008 06:23 AM
Unexpected output while walking dirs Evan Carmi Python 2 01-02-2007 10:50 AM
output unexpected Vaibhav87@gmail.com C Programming 11 09-15-2006 07:08 PM
unexpected stream output with commas Kyle Kolander C++ 10 05-27-2005 09:58 PM
Unexpected repeating of my output function Tom Lam lemontea C Programming 5 11-13-2004 01:28 PM



Advertisments
 



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 47 48 49 50 51 52 53 54 55 56 57