kimo4ever
Member level 2
i have a question in verilog (Xilinux)
now, i have written a code with verilog ,
module LTE(out,a,b,c);
input a,b,c;
output out;
wire w1;
and #1 (w1,a,b);
or #2 (out,w1,c);
endmodule
module stimulus;
reg A,B,C;
wire OUT;
LTE G1 (OUT,A,B,C);
initial
begin
$monitor($time,"A=%b,B=%b,C=%b,OUT=%b",A,B,C,OUT);
A=1;B=0;C=0;
#1 B=1;C=1;
#2 A=0;
#1 B=0;
#1 C=0;
#3 $finish;
end
endmodule
and i do everything and the syntax was correct, now, how to simulate it?
with modelsim or another method?
because i tried the modlsim but doesn't work, should i edit some properties in modelsim before run it?( because it should run without forcing the values of the input )
thnx in advance
now, i have written a code with verilog ,
module LTE(out,a,b,c);
input a,b,c;
output out;
wire w1;
and #1 (w1,a,b);
or #2 (out,w1,c);
endmodule
module stimulus;
reg A,B,C;
wire OUT;
LTE G1 (OUT,A,B,C);
initial
begin
$monitor($time,"A=%b,B=%b,C=%b,OUT=%b",A,B,C,OUT);
A=1;B=0;C=0;
#1 B=1;C=1;
#2 A=0;
#1 B=0;
#1 C=0;
#3 $finish;
end
endmodule
and i do everything and the syntax was correct, now, how to simulate it?
with modelsim or another method?
because i tried the modlsim but doesn't work, should i edit some properties in modelsim before run it?( because it should run without forcing the values of the input )
thnx in advance