OpenCores
no use no use 1/1 no use no use
Verilog "Task" Help
by UmairSiddiqui on Apr 16, 2007
UmairSiddiqui
Posts: 21
Joined: Aug 13, 2005
Last seen: Sep 19, 2016
/**** given code sample doesn't make sense but any ways ***/ module Controller ( input clk, output reg wb_dat_o ); always begin wb_write(clk); end task wb_write; input a; begin wb_dat_o = a; end endtask /* OR */ always begin wb_write; end task wb_write; begin wb_dat_o = clk; end endtask endmodule On 4/16/07, DigitalHomeSoutions at cox.net DigitalHomeSoutions at cox.net> wrote:
Help! I've tried everything I can think of to try and get the Verilog "Task" function to work with ISE but I keep getting errors that Xilinx is working on the issue or the service pack has the fix (didn't work). Can anyone tell me what the correct format is for using the "Task" function in ISE? Here is what I have so far: module Controller( input clk, output reg wb_dat_o); always begin wb_write(clk, wb_dat_o); end task wb_write; input a; output reg out; assign out = a; endtask endmodule _______________________________________________ http://www.opencores.org/mailman/listinfo/cores



Verilog "Task" Help
by Unknown on Apr 16, 2007
Not available!
Help! I've tried everything I can think of to try and get the
Verilog "Task" function to work with ISE but I keep getting errors that
Xilinx is working on the issue or the service pack has the fix (didn't
work).

Can anyone tell me what the correct format is for using the "Task"
function in ISE? Here is what I have so far:

module Controller(
input clk,
output reg wb_dat_o);



always begin
wb_write(clk, wb_dat_o);
end

task wb_write;
input a;
output reg out;

assign out = a;

endtask
endmodule

Verilog "Task" Help
by Unknown on Apr 16, 2007
Not available!
On 4/16/07, DigitalHomeSoutions at cox.net DigitalHomeSoutions at cox.net> wrote:

Help! I've tried everything I can think of to try and get the
Verilog "Task" function to work with ISE but I keep getting errors that
Xilinx is working on the issue or the service pack has the fix (didn't
work).

Can anyone tell me what the correct format is for using the "Task"
function in ISE? Here is what I have so far:

module Controller(
input clk,
output reg wb_dat_o);



always begin
wb_write(clk, wb_dat_o);
end



Synthesizable blocks need a sensitivity list:
always @(posedge clk)
begin
wr_write (clk, wb_dat_o);
end


task wb_write;
input a;
output reg out;

assign out = a;



Assign statements are only valid on wires, and only valid outside of a
block. Also missing begin/end statements. Task outputs are implied 'reg',
it does not need to be declared.

task wb_write;
input a;
output out;
begin
out = a;
end
endtask


endtask
endmodule _______________________________________________ http://www.opencores.org/mailman/listinfo/cores
-------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.opencores.org/forums.cgi/cores/attachments/20070416/951f40ec/attachment.htm
no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.