diff --git a/.cproject b/.cproject
index 6336f9c..d09f2b3 100644
--- a/.cproject
+++ b/.cproject
@@ -51,7 +51,9 @@
+
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3ad52e6..8818c6c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,6 @@ set(ENABLE_SHARED TRUE CACHE BOOL "Build shared libraries")
include(GNUInstallDirs)
-include(Conan)
include(BuildType)
include(clang-format)
@@ -35,8 +34,6 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
set(warnings "/W4 /WX /EHsc")
endif()
-setup_conan()
-
# This line finds the boost lib and headers.
set(Boost_NO_BOOST_CMAKE ON) # Don't do a find_package in config mode before searching for a regular boost install.
find_package(Boost COMPONENTS program_options system thread REQUIRED)
@@ -58,7 +55,7 @@ if(CCI_FOUND)
endif()
add_subdirectory(scc)
-add_subdirectory(components)
+add_subdirectory(vp_components)
add_subdirectory(top)
# CTest is a testing tool that can be used to test your project.
diff --git a/README.md b/README.md
index dc90e37..cf0c91d 100644
--- a/README.md
+++ b/README.md
@@ -8,8 +8,6 @@ A simple C++/SystemC/CMake project to test pysysc
```
-pip install conan
-conan remote add minres https://api.bintray.com/conan/minres/conan-repo
cd PySysC-SC
mkdir build
cd build
@@ -18,15 +16,4 @@ cmake -DBUILD_SHARED_LIBS=ON ..
cmake --build .
```
-## Notes
-
-If you encounter issues when linking wrt. c++11 symbols you might have run into GCC ABI incompatibility introduced from GCC 5.0 onwards. You can fix this by adding '-s compiler.libcxx=libstdc++11' to the conan call or changing compiler.libcxx to
-```
-compiler.libcxx=libstdc++11
-```
-in $HOME/.conan/profiles/default or run
-
-```
-conan profile update settings.compiler.libcxx=libstdc++11 default
-```
diff --git a/conanfile.txt b/conanfile.txt
deleted file mode 100644
index cf5024c..0000000
--- a/conanfile.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-[requires]
-SystemC/2.3.3@minres/stable
-SystemC-CCI/1.0.0@minres/stable
-
-[generators]
-cmake
-
-[options]
-SystemC:stdcxx=11
-SystemC:shared=True
-SystemC-CCI:stdcxx=11
-SystemC-CCI:shared=True
diff --git a/router_example.py b/router_example.py
index 4e139cf..387d953 100644
--- a/router_example.py
+++ b/router_example.py
@@ -9,16 +9,17 @@ build_type='Debug'
logging.basicConfig(level=logging.DEBUG)
###############################################################################
myDir = os.path.dirname( os.path.realpath(__file__))
-res=pysysc.read_config_from_conan(os.path.join(myDir, 'conanfile.txt'), build_type)
pysysc.load_systemc()
###############################################################################
logging.debug("Loading SC-Components lib")
-pysysc.add_include_path(os.path.join(myDir, 'scc/incl'))
-pysysc.add_library('scc.h', os.path.join(myDir, 'build/%s/lib/libscc.so'%build_type))
+pysysc.add_include_path(os.path.join(myDir, 'scc/src/sysc'))
+pysysc.add_include_path(os.path.join(myDir, 'scc/src/common'))
+pysysc.add_include_path(os.path.join(myDir, 'scc/third_party'))
+pysysc.add_library('scc_sysc.h', os.path.join(myDir, 'build/%s/scc/src/sysc/libscc-sysc.so'%build_type))
###############################################################################
logging.debug("Loading Components lib")
-pysysc.add_include_path(os.path.join(myDir, 'components'))
-pysysc.add_library('components.h', os.path.join(myDir, 'build/%s/lib/libcomponents.so'%build_type))
+pysysc.add_include_path(os.path.join(myDir, 'vp_components'))
+pysysc.add_library('components.h', os.path.join(myDir, 'build/%s/vp_components/libvp_components.so'%build_type))
###############################################################################
# configure
###############################################################################
diff --git a/router_example2.py b/router_example2.py
index 22ede81..8e8dd5e 100644
--- a/router_example2.py
+++ b/router_example2.py
@@ -12,16 +12,17 @@ logging.basicConfig(level=logging.INFO)
build_type='Debug'
###############################################################################
myDir = os.path.dirname( os.path.realpath(__file__))
-pysysc.read_config_from_conan(os.path.join(myDir, 'conanfile.txt'), build_type)
pysysc.load_systemc()
###############################################################################
logging.debug("Loading SC-Components lib")
-pysysc.add_include_path(os.path.join(myDir, 'scc/incl'))
-pysysc.add_library('scc.h', os.path.join(myDir, 'build/%s/lib/libscc.so'%build_type))
+pysysc.add_include_path(os.path.join(myDir, 'scc/src/sysc'))
+pysysc.add_include_path(os.path.join(myDir, 'scc/src/common'))
+pysysc.add_include_path(os.path.join(myDir, 'scc/third_party'))
+pysysc.add_library('scc_sysc.h', os.path.join(myDir, 'build/%s/scc/src/sysc/libscc-sysc.so'%build_type))
###############################################################################
logging.debug("Loading Components lib")
-pysysc.add_include_path(os.path.join(myDir, 'components'))
-pysysc.add_library('components.h', os.path.join(myDir, 'build/%s/lib/libcomponents.so'%build_type))
+pysysc.add_include_path(os.path.join(myDir, 'vp_components'))
+pysysc.add_library('components.h', os.path.join(myDir, 'build/%s/vp_components/libvp_components.so'%build_type))
###############################################################################
# configure
###############################################################################
diff --git a/scc b/scc
index 385eed0..e98dde3 160000
--- a/scc
+++ b/scc
@@ -1 +1 @@
-Subproject commit 385eed07957bed93669ae6c453d706414e95aebc
+Subproject commit e98dde35c4b8502eb0abef51e34f45fad8c72b81
diff --git a/top/CMakeLists.txt b/top/CMakeLists.txt
index 818261c..e06a243 100644
--- a/top/CMakeLists.txt
+++ b/top/CMakeLists.txt
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.3)
set(APP_NAME top)
add_executable(${APP_NAME} sc_main.cpp)
-target_link_libraries (${APP_NAME} LINK_PUBLIC components)
+target_link_libraries (${APP_NAME} LINK_PUBLIC vp_components)
diff --git a/components/CMakeLists.txt b/vp_components/CMakeLists.txt
similarity index 69%
rename from components/CMakeLists.txt
rename to vp_components/CMakeLists.txt
index 1acfabe..0d98499 100644
--- a/components/CMakeLists.txt
+++ b/vp_components/CMakeLists.txt
@@ -6,8 +6,8 @@ set(LIB_SOURCES
)
# Define two variables in order not to repeat ourselves.
-set(LIBRARY_NAME components)
+set(LIBRARY_NAME vp_components)
# Define the library
add_library(${LIBRARY_NAME} SHARED ${LIB_SOURCES})
target_link_libraries (${LIBRARY_NAME} LINK_PUBLIC scc)
-target_include_directories (components PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+target_include_directories (${LIBRARY_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/components/clkgen.cpp b/vp_components/clkgen.cpp
similarity index 100%
rename from components/clkgen.cpp
rename to vp_components/clkgen.cpp
diff --git a/components/clkgen.h b/vp_components/clkgen.h
similarity index 75%
rename from components/clkgen.h
rename to vp_components/clkgen.h
index 23e2fd4..cafb2b4 100644
--- a/components/clkgen.h
+++ b/vp_components/clkgen.h
@@ -5,8 +5,8 @@
* Author: eyck
*/
-#ifndef COMPONENTS_CLKGEN_H_
-#define COMPONENTS_CLKGEN_H_
+#ifndef VP_COMPONENTS_CLKGEN_H_
+#define VP_COMPONENTS_CLKGEN_H_
#include
@@ -20,4 +20,4 @@ protected:
void end_of_elaboration() override;
};
-#endif /* COMPONENTS_CLKGEN_H_ */
+#endif /* VP_COMPONENTS_CLKGEN_H_ */
diff --git a/components/components.h b/vp_components/components.h
similarity index 100%
rename from components/components.h
rename to vp_components/components.h
diff --git a/components/initiator.cpp b/vp_components/initiator.cpp
similarity index 100%
rename from components/initiator.cpp
rename to vp_components/initiator.cpp
diff --git a/components/initiator.h b/vp_components/initiator.h
similarity index 100%
rename from components/initiator.h
rename to vp_components/initiator.h
diff --git a/components/resetgen.cpp b/vp_components/resetgen.cpp
similarity index 100%
rename from components/resetgen.cpp
rename to vp_components/resetgen.cpp
diff --git a/components/resetgen.h b/vp_components/resetgen.h
similarity index 75%
rename from components/resetgen.h
rename to vp_components/resetgen.h
index 4148ba4..a344054 100644
--- a/components/resetgen.h
+++ b/vp_components/resetgen.h
@@ -5,8 +5,8 @@
* Author: eyck
*/
-#ifndef COMPONENTS_RESETGEN_H_
-#define COMPONENTS_RESETGEN_H_
+#ifndef VP_COMPONENTS_RESETGEN_H_
+#define VP_COMPONENTS_RESETGEN_H_
#include
@@ -23,4 +23,4 @@ protected:
void thread();
};
-#endif /* COMPONENTS_RESETGEN_H_ */
+#endif /* VP_COMPONENTS_RESETGEN_H_ */
diff --git a/components/router.h b/vp_components/router.h
similarity index 100%
rename from components/router.h
rename to vp_components/router.h
diff --git a/components/target.cpp b/vp_components/target.cpp
similarity index 100%
rename from components/target.cpp
rename to vp_components/target.cpp
diff --git a/components/target.h b/vp_components/target.h
similarity index 100%
rename from components/target.h
rename to vp_components/target.h