SV-CC, In http://www.eda-stds.org/sv-bc/hm/7860.html , Dhiraj points out that 34.5.4 makes the following restriction "The qualifier ref cannot be used in import declarations." and asks whether an analogous restriction applies to export declarations. See his example below. Could you please clarify? According to 34.7 "However, such functions must adhere to the same restrictions on argument types and results as imposed on imported functions. It is an error to export a function that does not satisfy such constraints." and "Class member functions cannot be exported, but all other SystemVerilog functions can be exported." According to 34.8 "All aspects of exported functions described above in 34.7 apply to exported tasks." Thank you, -- Brad -----Original Message----- From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Dhiraj Kumar Prasad Sent: Monday, January 14, 2008 6:31 AM To: sv-bc@eda.org Cc: Dhiraj Kumar Prasad Subject: [sv-bc] ref can be used as formal argument of exported task/function? Hi, Is the following testcase is valid? module tmp(); export "DPI-C" function func1; function automatic func1(ref in1,output byte out1); begin out1 = in1; end endfunction endmodule In LRM P1800-2005,Nothing is said about the use of ref data type in the formal argument of exported task/function although the restriction on imported task/function is given in section 26.4.4. Thanks, Dhiraj -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon Jan 14 08:10:39 2008
This archive was generated by hypermail 2.1.8 : Mon Jan 14 2008 - 08:11:53 PST