UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor seni404
Visitor
5,197 Views
Registered: ‎04-14-2013

post place and root simulation

hi to all,

please i have a problem in clk_period, this is my code VHDL:

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

entity essai_fil is
    Port ( clk : in  STD_LOGIC;
           d_in : in  STD_LOGIC;
           d_out : out  STD_LOGIC);
end essai_fil;

architecture Behavioral of essai_fil is

begin

  process(clk)--processus1
begin
if (clk'event and clk='1')then
  
         d_out <= d_in;
       end if ;
     end process;
   
end Behavioral;

 and this is the testbench generate automatically by xilinx: and it gives for clk_period =10 ns

LIBRARY ieee;
USE ieee.std_logic_1164.ALL;

 
ENTITY test_fil IS
END test_fil;
 
ARCHITECTURE behavior OF test_fil IS 
 
    -- Component Declaration for the Unit Under Test (UUT)
 
    COMPONENT essai_fil
    PORT(
         clk : IN  std_logic;
         d_in : IN  std_logic;
         d_out : OUT  std_logic
        );
    END COMPONENT;
    

   --Inputs
   signal clk : std_logic := '0';
   signal d_in : std_logic := '0';

 	--Outputs
   signal d_out : std_logic;

   -- Clock period definitions
   constant clk_period : time := 100 ns;
 
BEGIN
 
	-- Instantiate the Unit Under Test (UUT)
   uut: essai_fil PORT MAP (
          clk => clk,
          d_in => d_in,
          d_out => d_out
        );

   -- Clock process definitions
   clk_process :process
   begin
		clk <= '0';
		wait for clk_period/2;
		clk <= '1';
		wait for clk_period/2;
   end process;
 

   -- Stimulus process
   stim_proc: process
   begin		
	wait for Clk_period;
        
        d_in <= '1';
        wait for Clk_period;
        d_in <= '1';

      wait;
   end process;

END;

 and the post and route simulation give this result :

image2.png

please can any one explain to me why this late of output, ?????? it is from clk_period?

Tags (1)
0 Kudos
4 Replies
Xilinx Employee
Xilinx Employee
5,195 Views
Registered: ‎01-03-2008

Re: post place and root simulation

This is a duplicate thread to: http://forums.xilinx.com/t5/Timing-Analysis/Timing-for-shift-register/m-p/312401#U312401

and

http://forums.xilinx.com/t5/New-Users-Forum/Timing-Simulation-X-values-even-with-SLOW-clock/m-p/312453#M3973

 

------Have you tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com
0 Kudos
Instructor
Instructor
5,190 Views
Registered: ‎08-14-2007

Re: post place and root simulation

I'm not sure if this applies to VHDL simulation, but at least in the Verilog versions, there

is an "under the hood" GSR that asserts for 100 ns at the start of simulation.  If any of

the simulation primitives rely on GSR, then this could explain the 100 ns delay.  You

could test this theory by delaying your input for at least 100 ns before setting it high and

then look to see if the delay was what you expected.

-- Gabor
0 Kudos
Visitor seni404
Visitor
5,169 Views
Registered: ‎04-14-2013

Re: post place and root simulation

can any one explain to me what's the value adequate of clk_period ? that depends on what ? 

0 Kudos
Visitor seni404
Visitor
5,126 Views
Registered: ‎04-14-2013

Re: post place and root simulation

thanks Gabor for you ansewer it's very imporatnt :)

0 Kudos