Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Verilog (Xilinux) simulation via modelsim

Status
Not open for further replies.

kimo4ever

Member level 2
Joined
Dec 10, 2010
Messages
45
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,574
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
 

Hi,
u mean that you don't know how to simulate your code?
if yes
after compiling , click the "simulate" (beside compile) and then select your testbench.
then click "to wave" from "add" (from menu bar) and then click Run.
That's it.
 

thnx for your reply, but in Xilinux, after checking for syntax, i select the testbench file, then behavioral simulation, then in the processes window, appear the "modelsim" i must click on it then the modelsim open automatically and run, but that doesn't happen, i can't find simulate from add as you told me here
 

I thought u wanna simulate in modelsim not in xilinx...
 

yes i wanna simulate in modelsim, right, but from Xilinux, i load the file and compile it from Xilinux, the Modelsim appear at the process window in Xilunx then double click on it, it open directly modelsim simulate the file then run the simulation if it is a testbench file (i.e no need to force values to input coz they has been assigned within the code ), but the modelsim stop simulation at a specific line and don't simulate it
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top