Skip to content

Commit

Permalink
Comment the simple_sc_sv CMakeLists.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
Risto97 committed Feb 16, 2025
1 parent d39eb1d commit b9f4847
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/simple_sc_sv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
cmake_minimum_required(VERSION 3.25)
project(simple_sc_sv_example C CXX)

# Include SoCMake build system
include("../../SoCMakeConfig.cmake")

# Compile SystemC library during initial CMake configure time
systemc_build(VERSION 3.0.0 EXACT_VERSION)

# Add the Verilog DUT
add_subdirectory(adder)

# Create a static library from the DUT with verilator
verilator(adder SYSTEMC
VERILATOR_ARGS --pins-sc-uint
)

# Create SystemC main executable
add_executable(simple_sc_sv_example
./sc_main.cpp
)

# Link SystemC and the static library of the DUT to the executable
target_link_libraries(${PROJECT_NAME} PRIVATE
# External libraries
SystemC::systemc
Expand All @@ -23,6 +29,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
adder__vlt
)

# Add VERBOSE flag to enable message printing
target_compile_definitions(${PROJECT_NAME} PRIVATE
VERBOSE
)
Expand Down

0 comments on commit b9f4847

Please sign in to comment.