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

📄 adder.txt

📁 this code written in systemc language and it is a wewest language that important to simulate the sys
💻 TXT
字号:


// this languge call systemc and very important to simulate the system and teach the student how the micro works

#include "systemc.h"

#define WIDTH  4

SC_MODULE(adder) {
  sc_in<sc_uint<WIDTH> > a, b;  
  sc_out<sc_uint<WIDTH> > sum;

  void do_add() {
    sum.write(a.read() + b.read());
  }

  SC_CTOR(adder)       {
    SC_METHOD(do_add);   
    sensitive << a << b; 
  }
};


///////////////////////////////////////////////////////////
//////////////////////////////////////////////////////
///////////////////////////////////////////////
////////////////////////////////////////////////
//////////////////////////////////////////
//for any asks
send me email to tell you about this language

//this program call adder 
and it is add two number and have the result in sum
///////////////////////////////////////////////////
//////////////////////////////////////////////////////
///////////////////////////////////////////////////////
/////////////////////////////////////////////////////
//////////////////////////////////////////////////

////////////////////////////////////////////////


///////////////////////////////////////////////////





///////////////////////////////////////////////////
/////////////////////////////////////////////

/////////////////////////////////////////////////////

///////////////////////////////////////////////////////

////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
//////////////////////////////////////////////////////
/////////////////////////////////////////////////////
///////////////////////////////////////////////////////
////////////////////////////////////////////////////
//////////////////////////////////////////////////
///////////////////////////////////////////////////
///////////////////////////////////////////
////////////////////////////////////////////////
/////////////////////////////////////////////////
////////////////////////////////////////////////
///////////////////////////////////////////////////
///////////////////////////////////////////
////////////////////////////////////////////////////////////
///////////////////////////////////////////

⌨️ 快捷键说明

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