Ask Philipp - that was his comment.
John A
From:
Bishnupriya Bhattacharya <bpriya@cadence.com>
To:
"john.aynsley@doulos.com" <john.aynsley@doulos.com>,
"systemc-p1666-technical@eda.org" <systemc-p1666-technical@eda.org>
Date:
11/01/2011 18:21
Subject:
RE: sc_start
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, 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 Wed Jan 12 03:10:01 2011
This archive was generated by hypermail 2.1.8 : Wed Jan 12 2011 - 03:10:04 PST