RE: sc_start

From: Bishnupriya Bhattacharya <bpriya@cadence.com>
Date: Tue Jan 11 2011 - 10:21:42 PST

John,

How does one run into an infinite loop, with code like below?

  do {
    sc_start(0);
  while (sc_pending_activity_at_current_time())

-Bishnupriya

From: owner-systemc-p1666-technical@eda.org [mailto:owner-systemc-p1666-technical@eda.org] On Behalf Of john.aynsley@doulos.com
Sent: Tuesday, January 11, 2011 6:56 PM
To: systemc-p1666-technical@eda.org
Subject: sc_start

All,

Philipp writes:

5.3.4.2 Function sc_start

  "When function sc_start is called with a zero-valued time argument, the scheduler shall run for one delta cycle,..."

 Should there be a warning, if no activity is due in that delta cycle (sc_pending_activity_at_current_time() == false)? Otherwise, one can easily run into an endless loop...

Opinions?

--
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 Tue Jan 11 10:22:17 2011

This archive was generated by hypermail 2.1.8 : Tue Jan 11 2011 - 10:22:19 PST