lt_extension_mandatory.cpp

来自「SystemC Transaction Level Modelling. 是基于」· C++ 代码 · 共 61 行

CPP
61
字号
/**********************************************************************  The following code is derived, directly or indirectly, from the SystemC  source code Copyright (c) 1996-2008 by all Contributors.  All Rights reserved.  The contents of this file are subject to the restrictions and limitations  set forth in the SystemC Open Source License Version 3.0 (the "License");  You may not use this file except in compliance with such restrictions and  limitations. You may obtain instructions on how to receive a copy of the  License at http://www.systemc.org/. Software distributed by Contributors  under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF  ANY KIND, either express or implied. See the License for the specific  language governing rights and limitations under the License. *********************************************************************///=====================================================================///  @file lt_extension_mandatory.cpp//////  @brief Example main instantiates the lt_extension_mandatory_top and call sc_start() /////=====================================================================//  Original Authors://    Charles Wilson, ESLX//=====================================================================// define REPORT_DEFINE_GLOBALS in one location only#define REPORT_DEFINE_GLOBALS#include "tlm.h"            			              // TLM header#include "reporting.h"                          // reporting utilities#include "lt_extension_mandatory_top.h"  		    // top module//=====================================================================///  @fn sc_main//  ///  @brief SystemC entry point//  ///  @details///    This is the SystemC entry point for the example system.  The argc and argv ///    parameters are not used.  Simulation runtime is not specified when ///    'sc_start()' is called, the example's traffic generator will run to ///    completion, ending the simulation. /////=====================================================================int                                       // return statussc_main                                   // SystemC entry point( int    argc                             // argument count, char  *argv[]                           // argument vector){  REPORT_ENABLE_ALL_REPORTING ();         // REPORT_DISABLE_INFO_REPORTING    lt_extension_mandatory_top top("top");  // instantiate a exmaple top module  sc_core::sc_start();                    // start the simulation  return 0;                               // return okay status}

⌨️ 快捷键说明

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