?? readme
字號:
This is a very simple example to show how a user canrandomize data. This example builds on examples 1-3, whichshowed how to create user-defined data types.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 structure data_ext.h Extensions for the user-defined data types. test.cc A test that uses the introspection interface to Makefile Targets for sun-gnu, hppa-native and linuxIn order for a structure to have introspection capability, auser must define a scv_extensions<> template specializationfor the particular struct.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%%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 + -