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

📄 readme

📁 《SystemC片上系统设计》——高等院校教材 陈曦, 徐宁仪
💻
字号:
This is a very simple example to show how a user can createa special enumerated data type. SystemC SCV uses a specialC++ methodology called partial-template specialization tosupport arbitrary data types with randomization, transactionrecording, callbacks, and other features that deconstructthe elements of an object.The extension of an enumerated type creates a mappingbetween the enumeration value and the string name associatedwith the enumeration.The following source files are part of this example:  state.h      The definition of a user-defined structure that               contains an enumerated data type  state_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, auser must define a scv_extensions<> specialization for theparticular struct and enums.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -