Skip to content

Commit

Permalink
implementing incremental prefix tree expansion unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy1005 committed Dec 3, 2023
1 parent 3c0c51a commit ec12e87
Show file tree
Hide file tree
Showing 9 changed files with 981 additions and 722 deletions.
46 changes: 25 additions & 21 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# example: simple.cpp
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/simple)
# add_executable(simple_timing ${INK_EXAMPLE_DIR}/simple/simple.cpp)

# example: c432.cpp
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/c432)
# add_executable(c432_timing ${INK_EXAMPLE_DIR}/c432/c432.cpp)

# example: vga_lcd.cpp
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/vga_lcd)
# add_executable(vga_lcd_timing ${INK_EXAMPLE_DIR}/vga_lcd/vga_lcd.cpp)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/vga_lcd)
add_executable(vga_lcd_example ${INK_EXAMPLE_DIR}/vga_lcd/vga_lcd.cpp)

# example: tv80.cpp
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/tv80)
Expand All @@ -30,34 +22,46 @@ add_executable(aes_core_example ${INK_EXAMPLE_DIR}/aes_core/aes_core.cpp)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/ac97_ctrl)
add_executable(ac97_ctrl_example ${INK_EXAMPLE_DIR}/ac97_ctrl/ac97_ctrl.cpp)

# example: leon2_iccad.cpp
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/leon2)
add_executable(leon2_iccad_example ${INK_EXAMPLE_DIR}/leon2/leon2_iccad.cpp)

# example: netcard_iccad.cpp
# example: netcard.cpp
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/netcard)
add_executable(netcard_iccad_example ${INK_EXAMPLE_DIR}/netcard/netcard_iccad.cpp)
add_executable(netcard_example ${INK_EXAMPLE_DIR}/netcard/netcard.cpp)

# multi-iteration-experiment: exp.cpp
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/exp)
add_executable(exp ${INK_EXAMPLE_DIR}/exp/exp.cpp)

# multi-iteration-experiment: single-iter.cpp
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${INK_EXAMPLE_DIR}/exp)
add_executable(single-iter ${INK_EXAMPLE_DIR}/exp/single-iter.cpp)

list(APPEND INK_EXAMPLES
vga_lcd_example
tv80_example
wb_dma_example
des_perf_example
aes_core_example
ac97_ctrl_example
leon2_iccad_example
netcard_iccad_example
netcard_example
exp
single-iter
)

find_package(Threads REQUIRED)
foreach(eg IN LISTS INK_EXAMPLES)
# include OpenTimer
target_include_directories(${eg}
PUBLIC
${INK_3RD_PARTY_DIR}/OpenTimer
${PROJECT_SOURCE_DIR})

# link external libaries
target_link_libraries(${eg}
PRIVATE Threads::Threads
PUBLIC OpenTimer ink)

# include OpenTimer
target_include_directories(${eg}
PUBLIC ${INK_3RD_PARTY_DIR}/OpenTimer)



endforeach()


Loading

0 comments on commit ec12e87

Please sign in to comment.