Abstract
寫一個硬體的加法器,幾乎就跟軟體的HelloWorld一樣,是最基本的程式,此範例Demo如何用SystemC寫一個加法器。

Introduction
Adder.h

 1(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)#include "SystemC.h"
 2(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)
 3;


Adder.cpp

1(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)#include "systemc.h"
2(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)#include "Adder.h"
3(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)
4}


AdderTest.cpp (TestBench)

 1(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)#include <iostream>
 2(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)#include "systemc.h"
 3(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)#include "Adder.h"
 4(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)
 5(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)using namespace std;
 6(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)
 7}


執行結果

1(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)
2(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)             SystemC 2.1.v1 --- Oct 18 2006 02:34:01
3(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)        Copyright (c) 1996-2005 by all Contributors
4(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)                    ALL RIGHTS RESERVED
5(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)3
6(原創) 如何寫一個加法器? (C/C++) (SystemC) (IC Design)Press any key to continue

相关文章:

  • 2021-09-16
  • 2021-08-31
  • 2021-12-01
  • 2021-11-07
  • 2021-09-14
  • 2022-01-21
  • 2021-09-06
  • 2021-06-10
猜你喜欢
  • 2021-11-25
  • 2021-11-12
  • 2021-10-23
  • 2021-09-23
  • 2021-05-29
  • 2021-09-05
相关资源
相似解决方案