adds test for CCI enum macro
This commit is contained in:
parent
aff456d6f4
commit
904d897773
@ -14,7 +14,7 @@
|
|||||||
</extensions>
|
</extensions>
|
||||||
</storageModule>
|
</storageModule>
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||||
<configuration artifactName="${ProjName}" buildProperties="" description="" id="cmake4eclipse.mbs.toolchain.cmake.134761605" name="Debug" optionalBuildProperties="org.eclipse.cdt.docker.launcher.containerbuild.property.selectedvolumes=,org.eclipse.cdt.docker.launcher.containerbuild.property.volumes=" parent="org.eclipse.cdt.build.core.emptycfg">
|
<configuration artifactName="${ProjName}" buildProperties="" description="" id="cmake4eclipse.mbs.toolchain.cmake.134761605" name="Debug" optionalBuildProperties="org.eclipse.cdt.docker.launcher.containerbuild.property.volumes=,org.eclipse.cdt.docker.launcher.containerbuild.property.selectedvolumes=" parent="org.eclipse.cdt.build.core.emptycfg">
|
||||||
<folderInfo id="cmake4eclipse.mbs.toolchain.cmake.134761605.1159094612" name="/" resourcePath="">
|
<folderInfo id="cmake4eclipse.mbs.toolchain.cmake.134761605.1159094612" name="/" resourcePath="">
|
||||||
<toolChain id="cmake4eclipse.mbs.toolchain.cmake.1883503430" name="CMake driven" superClass="cmake4eclipse.mbs.toolchain.cmake">
|
<toolChain id="cmake4eclipse.mbs.toolchain.cmake.1883503430" name="CMake driven" superClass="cmake4eclipse.mbs.toolchain.cmake">
|
||||||
<targetPlatform id="cmake4eclipse.mbs.targetPlatform.cmake.1279728098" name="Any Platform" superClass="cmake4eclipse.mbs.targetPlatform.cmake"/>
|
<targetPlatform id="cmake4eclipse.mbs.targetPlatform.cmake.1279728098" name="Any Platform" superClass="cmake4eclipse.mbs.targetPlatform.cmake"/>
|
||||||
@ -28,12 +28,12 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</storageModule>
|
</storageModule>
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||||
<storageModule buildDir="build/${ConfigName}" dirtyTs="1703253448607" moduleId="de.marw.cmake4eclipse.mbs.settings">
|
<storageModule buildDir="build/${ConfigName}" dirtyTs="1715065528068" moduleId="de.marw.cmake4eclipse.mbs.settings">
|
||||||
<options/>
|
<options/>
|
||||||
<defs>
|
<defs>
|
||||||
<def name="CMAKE_BUILD_TYPE" type="STRING" val="Debug"/>
|
<def name="CMAKE_BUILD_TYPE" type="STRING" val="Debug"/>
|
||||||
<def name="BUILD_SCC_DOCUMENTATION" type="BOOL" val="OFF"/>
|
<def name="BUILD_SCC_DOCUMENTATION" type="BOOL" val="OFF"/>
|
||||||
<def name="ENABLE_CLANG_TIDY" type="STRING" val="ON"/>
|
<def name="ENABLE_CLANG_TIDY" type="STRING" val="OFF"/>
|
||||||
</defs>
|
</defs>
|
||||||
</storageModule>
|
</storageModule>
|
||||||
</cconfiguration>
|
</cconfiguration>
|
||||||
|
2
scc
2
scc
@ -1 +1 @@
|
|||||||
Subproject commit b70b27a878fdec49b6413fd3737d4e10ae72acb3
|
Subproject commit 580bce2322e3d7d576f460ee490c6c5ca0e1a6c1
|
@ -31,9 +31,12 @@
|
|||||||
* @date 29th April, 2011 (Friday)
|
* @date 29th April, 2011 (Friday)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <scc/cci_util.h>
|
||||||
#include <scc/configurer.h>
|
#include <scc/configurer.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
DEFINE_ENUM4CCI(trace_lvl, (NONE)(LOW)(MEDIUM)(HIGH)(FULL))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @fn int sc_main(int argc, char* argv[])
|
* @fn int sc_main(int argc, char* argv[])
|
||||||
* @brief The testbench for the hierarchical override of parameter values example
|
* @brief The testbench for the hierarchical override of parameter values example
|
||||||
@ -57,6 +60,8 @@ int sc_main(int sc_argc, char* sc_argv[]) {
|
|||||||
cci::cci_param<std::string> string_param{"string_param", "", "This is parameter 7", cci::CCI_ABSOLUTE_NAME, sc_main_orig};
|
cci::cci_param<std::string> string_param{"string_param", "", "This is parameter 7", cci::CCI_ABSOLUTE_NAME, sc_main_orig};
|
||||||
cci::cci_param<sc_core::sc_time> sc_time_param{"sc_time_param", sc_core::SC_ZERO_TIME, "This is parameter 7", cci::CCI_ABSOLUTE_NAME,
|
cci::cci_param<sc_core::sc_time> sc_time_param{"sc_time_param", sc_core::SC_ZERO_TIME, "This is parameter 7", cci::CCI_ABSOLUTE_NAME,
|
||||||
sc_main_orig};
|
sc_main_orig};
|
||||||
|
cci::cci_param<trace_lvl> trace_lvl_param{"trace_lvl_param", trace_lvl::NONE, "This is parameter 8", cci::CCI_ABSOLUTE_NAME,
|
||||||
|
sc_main_orig};
|
||||||
// Start the simulation
|
// Start the simulation
|
||||||
SCCINFO("sc_main") << "Begin Simulation.";
|
SCCINFO("sc_main") << "Begin Simulation.";
|
||||||
sc_core::sc_start(sc_core::SC_ZERO_TIME);
|
sc_core::sc_start(sc_core::SC_ZERO_TIME);
|
||||||
|
@ -8,3 +8,4 @@ float_param: 5.0
|
|||||||
double_param: 6
|
double_param: 6
|
||||||
string_param: test entry
|
string_param: test entry
|
||||||
sc_time_param: 10 ns
|
sc_time_param: 10 ns
|
||||||
|
trace_lvl_param: MEDIUM
|
Loading…
Reference in New Issue
Block a user