1
0
This repository has been archived on 2024-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
Files
SEm-ExamMidterm2024/Prefs/hds_user/v2005.1/templates/registered_views/sc_source.cpp
2024-03-22 13:16:48 +01:00

60 lines
1.1 KiB
C++

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)
// {
// }
//
//};