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

📄 test.cc

📁 SystemC片上系统设计的源代码: 书籍介绍: SystemC是被实践证明的优秀的系统设计描述语言
💻 CC
字号:
#include "data_ext.h"int sc_main(int argc, char** argv) {  scv_smart_ptr<data_t> data_p("data");  //set the global seed to that results will be consistent  scv_random::set_global_seed(100);        // nbcode "disable" start  //set the values of the array element  for(unsigned i=0; i<5; ++i) data_p->payload[i] = i*i;  //turn off randomization for the even array elements  for(unsigned i=0; i<5; i+=2)     data_p->payload[i].disable_randomization();  // nbcode "disable" end  //randomize composit  data_p->next();  scv_out << "Random value for " << data_p->get_name() << ":" << endl;  data_p->print(scv_out);  return 0;}

⌨️ 快捷键说明

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