I do not see the value-add for these properties- whatever we would end-up calling them. The vpiType property already returns 'vpiProgram' for a program handle, and vpiProgram is implicitly already a vpiScope. I could see *maybe* a vpiIsScope property to avoid a switch/case for a "mixed bag" of handle types, but a 'vpiProgram' property is merely equivalent to: (vpi_get(vpiType, <unknown_handle>) == vpiProgram ? 1 : 0); Regards, chuck From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org] On Behalf Of Jim Vellenga Sent: Thursday, January 16, 2014 9:46 AM To: Radosław Nawrot; 'Bresticker, Shalom'; sv-cc@eda.org Subject: RE: [sv-cc] Object of class of objects as a property Not as trivial as it sounds. I have added the following note to 4837: ----- Unfortunately, this is not consistent with assumptions made in the design of VPI. In particular, vpi_user.h and sv_vpi_user.h do not use distinct sets of integers for object types and for properties. For example, vpiModule (a type) and vpiStrength1 (a property) both have the value 32, so if an application issues a call to vpi_get(vpiModule, <primitive_handle>) or to vpi_get(vpiStrength1, <primitive_handle>), the implementation has no way to distinguish them. Changing either set of values would cause existing already compiled applications to fail. To get the desired information, however, one might define new properties such as vpiIsProgram, vpiIsScope, and so on. ----- Regards, Jim Vellenga From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org] On Behalf Of Radoslaw Nawrot Sent: Thursday, January 16, 2014 6:00 AM To: 'Bresticker, Shalom'; sv-cc@eda.org Subject: RE: [sv-cc] Object of class of objects as a property Thanks ________________________________ From: Bresticker, Shalom [mailto:shalom.bresticker@intel.com] Sent: Thursday, January 16, 2014 11:54 AM To: Radosław Nawrot; sv-cc@eda.org Subject: RE: [sv-cc] Object of class of objects as a property I filed this for you in Mantis 4837. From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org] On Behalf Of Rados?aw Nawrot Sent: Thursday, January 16, 2014 12:02 To: sv-cc@eda.org Subject: [sv-cc] Object of class of objects as a property Hi , I have proposal od small feature : 37.3.2 Object type properties Type of object or class of objects can be property of bool type. i.e hnd_to_program - vpiHandle with handle to vpiProgram vpi_get(vpiProgram,hnd_to_program ) - should return true vpi_get(vpiScope,hnd_to_program ) - should return true Implementation of this feature should be trivial , editors change in LRM also , and (i.e second example) its very usefull, Regards, Radek -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean. --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, 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 Thu Jan 16 07:02:41 2014
This archive was generated by hypermail 2.1.8 : Thu Jan 16 2014 - 07:02:44 PST