温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,汇文网负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
网站客服:3074922707
IEC_61691
2009
_IEEE_Std_1666
IEC 61691-7Edition 1.0?2009-12INTERNATIONAL STANDARD Behavioural languages Part 7:SystemC Language Reference Manual IEC 61691-7:2009(E)IEEE Std 1666-2005(E)IEEE Std 1666 THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2009 IEEE Al l rights res erved.IEEE is a regis tered trademark in the U.S.Patent&Trademark Office,owned by the Ins titute of El ectrical and El ectronics Engineers,Inc.Unl es s otherwis e s pecified,no part of this publ ication may be reproduced or util ized in any form or by any means,el ectronic or mechanical,incl uding photocopy ing and microfil m,without permis s ion in writing from the IEC Central Office.Any ques tions about IEEE copy right s houl d be addres s ed to the IEEE.Enquiries about obtaining additional rightsto this publ ication and other information reques ts s houl d be addres s ed to the IEC or y our l ocal IEC member National Committee.IEC Central Office Ins titute of El ectrical and El ectronics Engineers,Inc 3,rue de Varemb 3 Park Avenue CH-1211 Geneva 20 New York,NY10016-5997 Switzerl and USA Email:inmail iec.ch Email:s tds.iprieee.org Web:www.iec.ch Web:www.ieee.org About the IEC The International El ectrotechnical Commis s ion(IEC)is the l eading gl obal organization that prepares and publ is hes International Standards for al l el ectrical,el ectronic and rel ated technol ogies.About IEC publications The technical content of IEC publ ications is kept under cons tant review by the IEC.Pl eas e make s ure that y ou have the l ates t edition,a corrigenda or an amendment might have been publ is hed.?Catal ogue of IEC publ ications:www.iec.ch/s earchpub The IEC on-l ine Catal ogue enabl es y ou to s earch by a variety of criteria(reference number,text,technical committee,).It al s o gives information on projects,withdrawn and repl aced publ ications.?IEC J us t Publ is hed:www.iec.ch/onl ine_news/jus tpub Stay up to date on al l new IEC publ ications.J us t Publ is hed detail s twice a month al l new publ ications rel eas ed.Avail abl e on-l ine and al s o by email.?El ectropedia:www.el ectropedia.org The worl d s l eading onl ine dictionary of el ectronic and el ectrical terms containing more than 20 000 terms and definitions in Engl is h and French,with equival ent terms in additional l anguages.Al s o known as the International El ectrotechnical Vocabul ary onl ine.?Cus tomer Service Centre:www.iec.ch/webs tore/cus ts erv If y ou wis h to give us y our feedback on this publ ication or need further as s is tance,pl eas e vis it the Cus tomer Service Centre FAQ or contact us:Email:cs ciec.ch Tel.:+41 22 919 02 11 IEC 61691-7Edition 1.0?2009-12INTERNATIONAL STANDARD Behavioural languages Part 7:SystemC Language Reference Manual INTERNATIONAL ELECTROTECHNICAL COMMISSION XPICS 25.040,35.060 PRICE CODEISBN 2-8318-1069-4 IEEE Std 1666Foreword.xiIEEE Introduction.xvi1.Overview.11.1 Scope.11.2 Purpose.11.3 Subsets.11.4 Relationship with C+.11.5 Guidance for readers.22.References.33.Terminology and conventions used in this standard.43.1 Terminology.43.1.1 Shall,should,may,can.43.1.2 Implementation,application.43.1.3 Call,called from,derived from.43.1.4 Specific technical terms.43.2 Syntactical conventions.63.2.1 Implementation-defined.63.2.2 Disabled.63.2.3 Ellipsis(.).63.2.4 Class names.63.2.5 Embolded text.73.3 Semantic conventions.73.3.1 Class definitions and the inheritance hierarchy.73.3.2 Function definitions and side-effects.73.3.3 Functions whose return type is a reference or a pointer.73.3.4 Namespaces and internal naming.93.3.5 Non-compliant applications and errors.93.4 Notes and examples.104.Elaboration and simulation semantics.114.1 Elaboration.114.1.1 Instantiation.114.1.2 Process macros.134.1.3 Port binding and export binding.134.1.4 Setting the time resolution.144.2 Simulation.144.2.1 The scheduling algorithm.154.2.2 Cycles in the scheduling algorithm.174.3 Running elaboration and simulation.184.3.1 Function declarations.184.3.2 Function sc_elab_and_sim.184.3.3 Functions sc_argc and sc_argv.194.3.4 Running under application control using functions sc_main and sc_start.194.3.5 Running under control of the kernel.204.4 Elaboration and simulation callbacks.204.4.1 before_end_of_elaboration.214.4.2 end_of_elaboration.224.4.3 start_of_simulation.23CONTENTS Published by IEC under licence from IEEE.?2005 IEEE.All rights reserved.IEC 61691-7:2009(E)IEEE Std 1666-2005(E)i 4.4.4end_of_simulation.234.5 Other functions related to the scheduler.244.5.1Function declarations.244.5.2Function sc_stop,sc_set_stop_mode,and sc_get_stop_mode.244.5.3Function sc_time_stamp.254.5.4Function sc_delta_count.264.5.5Function sc_is_running.265.Core language class definitions.275.1 Class header files.275.1.1#include systemc.275.1.2#include systemc.h.275.2 sc_module.295.2.1Description.295.2.2Class definition.295.2.3Constraints on usage.315.2.4kind.315.2.5SC_MODULE.315.2.6Constructors.325.2.7SC_CTOR.325.2.8SC_HAS_PROCESS.335.2.9SC_METHOD,SC_THREAD,SC_CTHREAD.335.2.10Method process.345.2.11Threa