cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Anonymous
Not applicable
2,191 Views

How to stop the process statement after one time execution

Jump to solution

Hi,

      I added the snap of my test bench code.I am sending the value to serial_data_s on each rising edge of the clock.But it is continuously sending through that signal until stopping my simulation in ISIM simulator.I want this data at once(1 time) in the serial_data_s signal.

        Please tell me how to do?

--------------------------------------------------------------------------------------------------------------------------------------------------------
process

begin

        wait for 37.592 ns;
        serial_data_s        <= '0';
        
        wait for 37.592 ns;
        serial_data_s        <= '0';
        
        wait for 37.592 ns;
        serial_data_s        <= '0';
        
    wait for 37.592 ns;
    serial_data_s        <= '1';
    
    wait for 37.592 ns;
    serial_data_s        <= '0';
    
    wait for 37.592 ns;
    serial_data_s        <= '0';
    
    wait for 37.592 ns;
    serial_data_s        <= '0';
    
    wait for 37.592 ns;
    serial_data_s        <= '0';
    
    wait for 37.592 ns;
    serial_data_s        <= '0';
    
    wait for 37.592 ns;
    serial_data_s        <= '0';
    
    wait for 37.592 ns;
    serial_data_s        <= '1';
    
    wait for 37.592 ns;
    serial_data_s        <= '0';
    
    wait for 37.592 ns;
    serial_data_s        <= '0';
    
    wait for 37.592 ns;
    serial_data_s        <= '0';
    
    wait for 37.592 ns;
    serial_data_s        <= '1';
    
    wait for 37.592 ns;
    serial_data_s        <= '1';

end process;

----------------------------------------------------------------------------------------------------------------------------------------------------------

0 Kudos
1 Solution

Accepted Solutions
mcgett
Xilinx Employee
Xilinx Employee
2,721 Views
Registered: ‎01-03-2008
Add a "wait;" after the last assignment and it will wait forever.
------Have you tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com

View solution in original post

0 Kudos
1 Reply
mcgett
Xilinx Employee
Xilinx Employee
2,722 Views
Registered: ‎01-03-2008
Add a "wait;" after the last assignment and it will wait forever.
------Have you tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com

View solution in original post

0 Kudos