Skip to content

Commit

Permalink
litex: correct disable diff test option
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Comodi <[email protected]>
  • Loading branch information
acomodi committed Oct 26, 2020
1 parent ef79f50 commit 270a0a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions common/cmake/litex.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function(ADD_LITEX_TEST)
# FLAGS <additional litex options>
# GENERATE_SCRIPT <generate script>
# FIXUP_SCRIPT <fixup script>
# [DISABLE_DIFF_FASM] <option to disable the diff fasm test>
# [DISABLE_DIFF_TEST] <option to disable the diff fasm test>
# )
#
# LITEX_DIR is the directory that is generated by litex and used to get the generated source files
Expand All @@ -34,7 +34,7 @@ function(ADD_LITEX_TEST)
#
# ~~~

set(options USE_XDC)
set(options USE_XDC DISABLE_DIFF_TEST)
set(oneValueArgs NAME LITEX_DIR LITEX_BOARD BOARD GENERATE_SCRIPT FIXUP_SCRIPT VIVADO_XDC)
set(multiValueArgs FLAGS LITEX_SOURCES EXTERNAL_SOURCES)
cmake_parse_arguments(
Expand All @@ -56,7 +56,7 @@ function(ADD_LITEX_TEST)
set(USE_XDC ${ADD_LITEX_TEST_USE_XDC})
set(VIVADO_XDC ${ADD_LITEX_TEST_VIVADO_XDC})
set(FLAGS ${ADD_LITEX_TEST_FLAGS})
set(DISABLE_DIFF_FASM ${ADD_LITEX_TEST_DISABLE_DIFF_FASM})
set(DISABLE_DIFF_TEST ${ADD_LITEX_TEST_DISABLE_DIFF_TEST})

set(LITEX_GATEWARE ${CMAKE_CURRENT_BINARY_DIR}/${LITEX_DIR}/gateware/)

Expand Down Expand Up @@ -106,12 +106,12 @@ function(ADD_LITEX_TEST)
)
endif()

if (${DISABLE_DIFF_FASM})
if (${DISABLE_DIFF_TEST})
add_vivado_target(
NAME ${NAME}_vivado
PARENT_NAME ${NAME}
XDC ${VIVADO_XDC}
DISABLE_DIFF_FASM
DISABLE_DIFF_TEST
)
else()
add_vivado_target(
Expand Down
2 changes: 1 addition & 1 deletion xc/xc7/tests/soc/litex/mini_ddr_eth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ add_litex_test(
VIVADO_XDC arty_clocks.xdc
# FIXME: Certain BRAMs do have issues with the bittools regarding the
# INIT configuration bits: https://github.com/SymbiFlow/prjxray/pull/1335
DISABLE_DIFF_FASM
DISABLE_DIFF_TEST
)

0 comments on commit 270a0a2

Please sign in to comment.