Re: [sv-bc] 18.5.1-2, modports -- proposal


Subject: Re: [sv-bc] 18.5.1-2, modports -- proposal
From: Steven Sharp (sharp@cadence.com)
Date: Thu Mar 06 2003 - 15:56:00 PST


I agree with Francoise, that the prototype should be on the export, not
on the import. There are two reasons for this:

1. The prototype is only required if there is an export. Requiring it
   on the export automatically accomplishes this. It is simpler than
   requiring it on the import only if you have an export.
   
2. It is more consistent with the normal situation. Normally, the
   locally declared function/task provides the routine and the argument
   information. The export provides the routine and should also provide
   the argument information via a prototype. Why switch to putting the
   information on the consumer sometimes?
   
I haven't seen any reasonable argument for why it should be on the import.

Steven Sharp
sharp@cadence.com



This archive was generated by hypermail 2b28 : Thu Mar 06 2003 - 15:57:02 PST