RE: sc_set_stop_mode

From: Stuart Swan <stuart@cadence.com>
Date: Fri Mar 26 2010 - 13:14:01 PDT

Tor-

I agree that the optimization that I mention is probably just theoretical.

Probably a better argument for restricting this to before start of sim is simply "hygiene".

If a model knows that it needs to tweak stop_mode, why not do it before start of sim (since it can
use end of elab callback to do so ) ?

Waiting to do the tweak till sim is running introduces all sorts of potential problems - other models might be
relying on setting that was in place at start of sim, process ordering issues introduce non determinism, etc.

-Stuart

From: Jeremiassen, Tor [mailto:tor@ti.com]
Sent: Friday, March 26, 2010 1:09 PM
To: Stuart Swan; john.aynsley@doulos.com; systemc-p1666-technical@eda.org
Subject: RE: sc_set_stop_mode

The question is if that kind of optimization would really have a significant impact. I'm not sure I can quite imagine the impact being that noticeable without changing the actual semantics of the SystemC simulation itself (though, I may have been accused of suffering from lack of imagination on one or two occasions).

Best regards,

Tor Jeremiassen

---
Tor Jeremiassen, Ph.D.
Simulation and Modeling CTO
SDO Foundational Tools
Texas Instruments                    Ph:    281 274 3483
P.O. Box 1443, MS 730                Fax:   281 274 2703
Houston, TX 77251-1443               Email: tor@ti.com<mailto:tor@ti.com>
________________________________
From: Stuart Swan [mailto:stuart@cadence.com]
Sent: Friday, March 26, 2010 2:42 PM
To: Jeremiassen, Tor; john.aynsley@doulos.com; systemc-p1666-technical@eda.org
Subject: RE: sc_set_stop_mode
I guess one could imagine a simulator doing an optimization based on the value of stop_mode that
is set before start_of_simulation. So in theory having the restriction that it is an error to call it during
simulation might be a good thing.
-Stuart
From: owner-systemc-p1666-technical@eda.org [mailto:owner-systemc-p1666-technical@eda.org] On Behalf Of Jeremiassen, Tor
Sent: Friday, March 26, 2010 11:44 AM
To: john.aynsley@doulos.com; systemc-p1666-technical@eda.org
Subject: RE: sc_set_stop_mode
I don't have any strong opinions on this, other than I'd rather be more permissive than restrictive as long as we don't compromise anything significant.
Tor
---
Tor Jeremiassen, Ph.D.
Simulation and Modeling CTO
SDO Foundational Tools
Texas Instruments                    Ph:    281 274 3483
P.O. Box 1443, MS 730                Fax:   281 274 2703
Houston, TX 77251-1443               Email: tor@ti.com<mailto:tor@ti.com>
________________________________
From: owner-systemc-p1666-technical@eda.org [mailto:owner-systemc-p1666-technical@eda.org] On Behalf Of john.aynsley@doulos.com
Sent: Friday, March 26, 2010 11:04 AM
To: systemc-p1666-technical@eda.org
Subject: sc_set_stop_mode
It is unclear whether or not sc_set_stop_mode() is meant to be called during simulation. The LRM says nothing. The OSCI implementation reports a warning if it is called during simulation.
Should we rule that it is an error to call sc_set_stop_mode() during simulation, or should it be allowed and supported? Opinions?
Thanks,
John A
--
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 Fri Mar 26 13:14:27 2010

This archive was generated by hypermail 2.1.8 : Fri Mar 26 2010 - 13:14:28 PDT