-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ESI Runtime] Incorporate RPC server into ESICppRuntime
Since the gRPC server is now going to be used in multiple places AND the RPC server now uses ports 'n' stuff from ESICppRuntime, it is appropriate to move RpcServer into ESICppRuntime proper. This also significantly simplifies the build.
- Loading branch information
Showing
21 changed files
with
100 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
lib/Dialect/ESI/runtime/cosim/cosim_dpi_server/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
##===- CMakeLists.txt - Core cosim DPI library ----------------*- cmake -*-===// | ||
## | ||
## Define the cosim DPI library if it's enabled. | ||
## | ||
##===----------------------------------------------------------------------===// | ||
|
||
# Dummy library for a library which should be included by the RTL simulator. | ||
# Dummy is necessary for linking purposes. NOT to be distributed. | ||
add_library(MtiPli SHARED | ||
DummySvDpi.cpp | ||
) | ||
set_target_properties(MtiPli PROPERTIES CXX_VISIBILITY_PRESET "default") | ||
|
||
# DPI calls. | ||
add_library(EsiCosimDpiServer SHARED | ||
DpiEntryPoints.cpp | ||
) | ||
set_target_properties(EsiCosimDpiServer | ||
PROPERTIES | ||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib | ||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib | ||
CXX_VISIBILITY_PRESET "default" | ||
) | ||
add_dependencies(EsiCosimDpiServer ESICppRuntime MtiPli) | ||
target_link_libraries(EsiCosimDpiServer | ||
PUBLIC | ||
ESICppRuntime | ||
MtiPli | ||
) | ||
|
||
install(TARGETS EsiCosimDpiServer | ||
DESTINATION lib | ||
COMPONENT ESIRuntime | ||
) | ||
|
||
# RTL cosimulation collateral. | ||
set(cosim_collateral | ||
Cosim_DpiPkg.sv | ||
Cosim_Endpoint.sv | ||
Cosim_Manifest.sv | ||
Cosim_MMIO.sv | ||
|
||
driver.sv | ||
driver.cpp | ||
) | ||
|
||
install(FILES | ||
${cosim_collateral} | ||
DESTINATION cosim | ||
COMPONENT ESIRuntime | ||
) | ||
|
||
add_custom_target(esi-cosim | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different | ||
${CMAKE_CURRENT_SOURCE_DIR}/esi-cosim.py | ||
${CIRCT_TOOLS_DIR}/esi-cosim.py) | ||
foreach (cf ${cosim_collateral}) | ||
add_custom_command(TARGET esi-cosim POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different | ||
${CMAKE_CURRENT_SOURCE_DIR}/${cf} | ||
${CIRCT_TOOLS_DIR}/../cosim/${cf} | ||
) | ||
endforeach() | ||
|
||
# ESI simple cosim runner. | ||
install(FILES | ||
esi-cosim.py | ||
DESTINATION bin | ||
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ | ||
GROUP_EXECUTE GROUP_READ | ||
WORLD_EXECUTE WORLD_READ | ||
COMPONENT ESIRuntime | ||
) | ||
set(ESI_COSIM_PATH $<TARGET_FILE:EsiCosimDpiServer> | ||
CACHE PATH "Path to Cosim DPI shared library") |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters