simulation time does not advance after adding # delay

A

azam

Guest
`timescale 1 ns / 10 ps
`define reset_period 50
`define input_data_mem_size 16
`define input_data_file "10b_data.txt"
initial begin
reset_n = 1'b0;
clk_150 = 1'b0;
input_data = 10'b00_0000_0000;
//$readmemb(`input_data_file,input_data_mem);
$display("***** Waiting for Reset Low Period");
# 50 //// <-------- Adding this delay, stops the simulatior
from advancing
// reset_n = 1'b1;
$display("***** Finished Reset low Period");
reset_n = 1'b1;
$display("***** Reset low Period, over and Reset deasserted");
// #50000
$display("***** Completed wait for fifty thousand tick times");
$finish;

end
 
Which simulator are you using? try modifying the line to "#50 ; " (note
';' added).

Thanks,
Naren.

Narendran Kumaraguru Nathan,
TooMuch Semiconductor Solutions Pvt. Ltd.,
Startup specialising in EDA and Verification.
 
Hi Narendran,

Thank you very much, the simulator advances after adding the
semicolon;. I am using VCS, the similar code works in a different test
bench (i.e., with out the semicolon). Any idea why it is different?

-Azam
 
azam wrote:
Thank you very much, the simulator advances after adding the
semicolon;. I am using VCS, the similar code works in a different test
bench (i.e., with out the semicolon). Any idea why it is different?
Presumably a bug in the simulator.
 

Welcome to EDABoard.com

Sponsor

Back
Top