Initial commit
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
FILE_NAMING_RULE: %(unit).cpp
|
||||
DESCRIPTION_START
|
||||
This is the default template used for the creation of SystemC source files.
|
||||
Template supplied by Mentor Graphics.
|
||||
DESCRIPTION_END
|
||||
//
|
||||
// Created:
|
||||
// by - %(user).%(group) (%(host))
|
||||
// at - %(time) %(date)
|
||||
//
|
||||
// using Mentor Graphics HDL Designer(TM) %(version)
|
||||
//
|
||||
// Filename: %(view)
|
||||
|
||||
#include "systemc.h"
|
||||
//#include "%(unit).h"
|
||||
|
||||
// Method body for %(unit)_action
|
||||
void %(unit)::%(unit)_action()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
SC_MODULE_EXPORT(%(unit));
|
||||
|
||||
//
|
||||
// It is recommended that the SC_MODULE code is placed in a separate header file
|
||||
// If required, you can copy/paste the following template code into a header file
|
||||
// called %(unit).h and uncomment the #include statement above.
|
||||
|
||||
//#ifndef %(unit)_H
|
||||
//#define %(unit)_H
|
||||
//
|
||||
//#include "systemc.h"
|
||||
//
|
||||
//SC_MODULE (%(unit))
|
||||
//{
|
||||
// // Ports
|
||||
// sc_in<bool> clk,
|
||||
// sc_in<int> in2;
|
||||
// sc_out<int> out1;
|
||||
//
|
||||
// // Methods
|
||||
// void %(unit)_action();
|
||||
//
|
||||
// // %(unit) Constructor
|
||||
// SC_CTOR(%(unit))
|
||||
// :
|
||||
// {
|
||||
// SC_THREAD(%(unit)_action);
|
||||
// sensitive << clk.pos();
|
||||
// }
|
||||
//
|
||||
// // %(unit) Destructor
|
||||
// ~%(unit)
|
||||
// {
|
||||
// }
|
||||
//
|
||||
//};
|
Reference in New Issue
Block a user