|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
CONTENTS
1. Overview............................................................................................................................................. 1
1.1 Scope........................................................................................................................................... 1
1.2 Purpose........................................................................................................................................ 1
1.3 Subsets ........................................................................................................................................ 1
1.4 Relationship with C++ ................................................................................................................. 1
1.5 Guidance for readers .................................................................................................................... 2
2. References........................................................................................................................................... 3
3. Terminology and conventions used in this standard............................................................................ 4
3.1 Terminology................................................................................................................................ 4
3.1.1 Shall, should, may, can................................................................................................. 4
3.1.2 Implementation, application......................................................................................... 4
3.1.3 Call, called from, derived from .................................................................................... 4
3.1.4 Specific technical terms ............................................................................................... 4
3.2 Syntactical conventions ............................................................................................................... 6
3.2.1 Implementation-defined............................................................................................... 6
3.2.2 Disabled ....................................................................................................................... 6
3.2.3 Ellipsis (...)................................................................................................................... 6
3.2.4 Class names.................................................................................................................. 6
3.2.5 Embolded text .............................................................................................................. 7
3.3 Semantic conventions .................................................................................................................. 7
3.3.1 Class definitions and the inheritance hierarchy ........................................................... 7
3.3.2 Function definitions and side-effects ........................................................................... 7
3.3.3 Functions whose return type is a reference or a pointer............................................... 7
3.3.4 Namespaces and internal naming................................................................................. 9
3.3.5 Non-compliant applications and errors ........................................................................ 9
3.4 Notes and examples ................................................................................................................... 10
4. Elaboration and simulation semantics ............................................................................................... 11
4.1 Elaboration................................................................................................................................ 11
4.1.1 Instantiation ............................................................................................................... 11
4.1.2 Process macros........................................................................................................... 13
4.1.3 Port binding and export binding ................................................................................ 13
4.1.4 Setting the time resolution ......................................................................................... 14
4.2 Simulation................................................................................................................................. 14
4.2.1 The scheduling algorithm .......................................................................................... 15
4.2.2 Cycles in the scheduling algorithm............................................................................ 17
4.3 Running elaboration and simulation .......................................................................................... 18
4.3.1 Function declarations................................................................................................. 18
4.3.2 Function sc_elab_and_sim......................................................................................... 18
4.3.3 Functions sc_argc and sc_argv .................................................................................. 19
4.3.4 Running under application control using functions sc_main and sc_start................. 19
4.3.5 Running under control of the kernel .......................................................................... 20
4.4 Elaboration and simulation callbacks ........................................................................................ 20
4.4.1 before_end_of_elaboration ........................................................................................ 21
4.4.2 end_of_elaboration .................................................................................................... 22
4.4.3 start_of_simulation .................................................................................................... 23 |
|