[SOLVED] Need help for simulation problem of Xilinx 12.3 ISE Webpack

Status
Not open for further replies.

moonnightingale

Full Member level 6
Joined
Sep 17, 2009
Messages
362
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,298
Activity points
3,832
I am not getting correct waveform. I have attached code and waveform.Kindly look into code and see where is mistake

`timescale 1 ns / 1 ps
module first(c,a,b);
output c;
input a,b;
and (c,a,b);
endmodule

// Test Bench is written
module t_first;
reg t_a,t_b;
wire t_c;
first M1(t_c,t_a,t_b);
initial
begin
#5000 $finish;
end
initial
begin
t_a=0;
t_b=0;
#1000 t_a=1;t_b=1;
#1500 t_a=0;t_b=0;
end
endmodule
 

Attachments

  • pic.jpg
    171.9 KB · Views: 122

Hi moonnightingale,

The answer is right there in your screenshot.

Your simulation only runs for 1000 ns, which incidentally is the default setting in ISE 12.3 for a simulation run. You can change it in Process => Process Properties => Simulation Run Time.

hope that helps!
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…