test.cc

来自「SystemC片上系统设计的源代码: 书籍介绍: SystemC是被实践证明」· CC 代码 · 共 18 行

CC
18
字号
#include "state_ext.h"int sc_main(int argc, char** argv) {  scv_smart_ptr<state_t> st_p("state_data");  //set the values of the fields. Note: a scv_smart_ptr works like  //a normal pointer object for accessing the object.  st_p->state = state_t::STATE_3;  st_p->delay = 2;  st_p->data  = 0xaa;  scv_out << "Printing data in object " << st_p->get_name() << endl;  st_p->print(); //print the object  return 0;}

⌨️ 快捷键说明

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