RegisterLogin  
Update Profile
   
You are here: Forum  
Minimize 
SVUG Community Forum
Subject: typedef
Prev Next
You are not authorized to post a reply.

Author Messages
DhwaniUser is Offline

Posts:3

08/26/2008 3:56 PM  

Hi,

I have following code which uses typedef statement, is there another way to code this without using typedef?


class A#(type T=integer);
     typedef A#(T) A_type; //Is it possible to re-write this without using typedef
     T size;
     T payload []
     T i;
     function new (T size);
      ........................      
     endfunction

     function integer calc_parity(T payload);
           -----------
     endfunction

     function T get_size(A_type p)
   ------------uses calc_parity function ---------   
     endfunction

      endclass

Please Help.
Thank you

You are not authorized to post a reply.



ActiveForums 3.7
  

 Copyright 2008 by SystemVerilog User Group Contact Us    Privacy Statement