⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 SystemC片上系统设计的源代码: 书籍介绍: SystemC是被实践证明的优秀的系统设计描述语言
💻
字号:
This is a very simple example to show how a user can disablerandomization for certain elements in a structure.  Thisexample builds on example 4, which showed how to randomizesimple user data.In this example, three of the payload words are notrandomized, while the other two are.This example uses the static scv_random::set_global_seed()method to force the initial seed value. This method ensuresthat two simulation runs will produce the same results, aslong as the number of random objects and order of randomobject creation is unchanged. There are more sophisticatedmethods for ensuring reproducibility, but we use thesimplest form for this example.The following source files are part of this example:  data.h      The definition of a user-defined structures  data_ext.h  Extensions for the user-defined structures  test.cc     A test that uses the introspection interface to              randomize the data objects  Makefile    Targets for sun-gnu, hppa-native and linuxIn order for a structure to have introspection capabilities, a user must define a scv_extensions<> specialization for the particularstruct. A makefile for use with SystemC is provided with targets forthree different platforms:  make sun-gnu        # Gnu C++ compiler on Sun  make hppa-native    # HP C++ compiler on HP  make linux          # Gnu C++ compiler on Linux%%CATEGORIES            notebook examples introspection randomization%%TBARGS        ncsc    --stop hdl_elab --sconly sctop%%LinePrefix    all%%Files         none    %%REGSRC/test.cc %%REGSRC/test_reg.cc%%Files         osci    %%REGSRC/test.cc%%Files         schdl   %%REGSRC/test.cc%%Files         ncsc    %%REGSRC/test_reg.cc%%CheckTest     all     %%REGSRC/checktest.sh %%TBLOG %%REGSRC/tb_log.au%%REALCLEAN             %%REGBLD/logfile.diff

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -