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.

[SOLVED] Xilinx ISE crashes while Running Tasks

Status
Not open for further replies.

optimuz

Junior Member level 1
Joined
Nov 7, 2011
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bangalore, India
Activity points
1,392
Hi, My Xilinx ISE is getting crash when I tried a code for testing Task in Verilog.


What can be the probable reason for that. Even my machine which has 6gb ram with Xeon processor getting stuck and I need to restart the entire system.

Pls help,
Thanks in Advance

Attaching the code below this.

module tsk_tb;

//internal wires
reg [3:0]a,b;
wire and_out,or_out;

//instantiaition

tsk uut (.a(a),.b(a),.and_out(and_out),.or_out(or_out));

//initializing inputs

initial
begin
a=4'b1010;
b=4'b0000;
end

endmodule

module tsk (
input [3:0]a,b,
output reg and_out,or_out
);

task my_task;
input [3:0] a,b;
output and_out,or_out;
begin
and_out=a&&b;
or_out=a||b;
end
endtask

always my_task (a,b,and_out,or_out);


endmodule
 

Hi, My Xilinx ISE is getting crash when I tried a code for testing Task in Verilog.


What can be the probable reason for that. Even my machine which has 6gb ram with Xeon processor getting stuck and I need to restart the entire system.

Pls help,
Thanks in Advance

Attaching the code below this.

module tsk_tb;

//internal wires
reg [3:0]a,b;
wire and_out,or_out;

//instantiaition

tsk uut (.a(a),.b(a),.and_out(and_out),.or_out(or_out));

//initializing inputs

initial
begin
a=4'b1010;
b=4'b0000;
end

endmodule

module tsk (
input [3:0]a,b,
output reg and_out,or_out
);

task my_task;
input [3:0] a,b;
output and_out,or_out;
begin
and_out=a&&b;
or_out=a||b;
end
endtask

always my_task (a,b,and_out,or_out);


endmodule


Found the reason myself :lol:

always my_task (a,b,and_out,or_out); should be replaced with always @ * my_task (a,b,and_out,or_out);
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top