LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cores > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Umair Siddiqui<umairsiddiqui84@g...>
    Date: Mon Apr 16 13:08:14 CEST 2007
    Subject: [oc] Verilog "Task" Help
    Top
    /**** 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@c... <DigitalHomeSoutions@c...> 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
    >

    ReferenceAuthor
    [oc] Verilog "Task" HelpDigitalHomeSoutions

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.