readme
来自「SystemC片上系统设计的源代码: 书籍介绍: SystemC是被实践证明」· 代码 · 共 37 行
TXT
37 行
This is a very simple example to show how a usercan create a special data type. SystemC uses a special C++methodology called partial template specialization to supportarbitrary data types with randomization, transaction recording,callbacks, and other features that deconstruct the elements of anobject.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 into the user-defined data structure Makefile Targets for sun-gnu, hppa-native and linuxIn order for a structure to have introspection capability, 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%%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 + =
减小字号Ctrl + -
显示快捷键?