Thursday, January 08, 2009     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: Task implementation outside module or class?
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
sundar_80
Posts: 20
Online: User is Offline
7/07/2007 3:31 AM  
Hello , Is it possible to decalre Tasks in a seperate file (without module or class) and use the task in a program or module. task.sv: File name ------------------ task test; $display ("In task"); endtask test.sv: Filename ------------------ program test(Interface) `include "task.v" initial test endprogram Inorder to accomodate above implementation what changes to be made in the code. Thanks in advance. Thanks & Regards, Quest Team
catchraghu
Posts: 0
Online: User is Offline
7/09/2007 3:46 AM  
i think u may have to import the module or package in which the program exists...
import::
this enables u to use all the module properties.... (data types ,functions, tasks.. etc)
dl_doulos
Posts: 9
Online: User is Offline
7/10/2007 6:11 AM  
Hi,

You can declare tasks (and functions) in a SystemVerilog package. The package contents can then be imported, one-by-one or with a wildcard, into any program or module. This is a cleaner solution than using Verilog `include. e.g.

//simple_package.sv
package simple_package;
   task test();
      $display("This is a test\n");
   endtask // test
endpackage // simple_package


//simple_program.sv
program simple();
   import simple_package::test;

   initial
     begin
        $display("Calling test..");
        test();
     end
endprogram // simple


The command "irun *.sv"  generates the following output:
Calling test..
This is a test


Regards,
Dave

  


David Long
Doulos
www.doulos.com
Posting to forums is available to community members only.
Login or Register

Forums > Functional Verification > SystemVerilog > Task implementation outside module or class?


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.