Subject: [sv-cc] RE: Feedback on Read API (VPI enhancement)
From: Joao Geada (Joao.Geada@synopsys.com)
Date: Tue Dec 16 2003 - 16:19:30 PST
MessageBassam,
I still have the same problem as before with the new revision. Basically the
issue is that, without explicit indirection,
all the VPI routines you use (vpi_handle et all) belong to the simulator and
will always reflect the model present in
the simulator, rather than any information loaded from the waveform file.
I realize that this latest revision has made some effort towards this, but
without completely insulating the read vpi
from the simulator vpi I do not feel that the effort is sufficient.
Personally I would much prefer something with the following form:
reader_handle = vpi_read_init(access_mode, "read library to be used", "file
to be opened")
where:
access mode: is the open mode as per your vpi_read_init spec
"read library" (string) specifies the reader to be used (eg vcd, vpd, fsdb,
dai, etc). If NULL uses
vendor's default form. Basically indicates
the name of a shared library to be
loaded that provides the waveform reading
services
"file" (string) the name of the waveform file to be opened. Can be NULL if
using interactive access
If reader_handle is non-NULL then the read initialization was successful.
From that point on, all read calls
are made following the pattern:
reader_handle->vpi_xxxx(args)
This approach allows:
1) reader API to be kept separate from vendor's tool API
2) multiple separate readers to be present simultaneously
3) multiple databases (using same or different readers) to be opened
simultaneously
4) does not (in my opinion) make the interface any harder to use or require
any other changes to
the existing proposal.
I firmly believe that such an approach is essential for the reader API to
become viable.
Joao
============================================================================
==
Joao Geada, PhD Principal Engineer Verif Tech
Group
Synopsys, Inc TEL: (508)
263-8083
377 Simarano Drive, Suite 300, FAX: (508)
263-8069
Marlboro, MA 01752, USA
============================================================================
==
-----Original Message-----
From: Bassam Tabbara [mailto:bassam@novas.com]
Sent: Tuesday, December 16, 2003 6:44 PM
To: Joao.Geada@synopsys.COM
Subject: Feedback on Read API (VPI enhancement)
Hi Joao,
Swapnajit said you may have some feedback on the Read API ? Can you please
send my way, if so ?
Thx.
-Bassam.
--
Dr. Bassam Tabbara
Technical Manager, R&D
Novas Software, Inc.
http://www.novas.com
(408) 467-7893
This archive was generated by hypermail 2b28 : Tue Dec 16 2003 - 16:20:21 PST