Skip to content

Commit 39ad671

Browse files
committed
Added -r ${TOP} to Yosys invocation
Signed-off-by: Maciej Kurc <[email protected]>
1 parent d780af3 commit 39ad671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/cmake/devices.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ function(ADD_FPGA_TARGET)
16321632
PINMAP_FILE=${PINMAP}
16331633
PYTHON3=${PYTHON3}
16341634
${ADD_FPGA_TARGET_DEFINES}
1635-
${QUIET_CMD} ${YOSYS} -p "${COMPLETE_YOSYS_SYNTH_SCRIPT}" -l ${OUT_JSON_SYNTH}.log ${SOURCE_FILES}
1635+
${QUIET_CMD} ${YOSYS} -r ${TOP} -p "${COMPLETE_YOSYS_SYNTH_SCRIPT}" -l ${OUT_JSON_SYNTH}.log ${SOURCE_FILES}
16361636
COMMAND
16371637
${CMAKE_COMMAND} -E touch ${OUT_FASM_EXTRA}
16381638
COMMAND
@@ -2759,7 +2759,7 @@ function(generate_pinmap)
27592759

27602760
add_custom_command(
27612761
OUTPUT ${GENERATE_PINMAP_NAME}.json
2762-
COMMAND ${QUIET_CMD} ${YOSYS} -p \"proc $<SEMICOLON> write_json ${CMAKE_CURRENT_BINARY_DIR}/${GENERATE_PINMAP_NAME}.json\" -l ${CMAKE_CURRENT_BINARY_DIR}/${GENERATE_PINMAP_NAME}.json.log ${SOURCE_FILES}
2762+
COMMAND ${QUIET_CMD} ${YOSYS} -r ${TOP} -p \"proc $<SEMICOLON> write_json ${CMAKE_CURRENT_BINARY_DIR}/${GENERATE_PINMAP_NAME}.json\" -l ${CMAKE_CURRENT_BINARY_DIR}/${GENERATE_PINMAP_NAME}.json.log ${SOURCE_FILES}
27632763
DEPENDS
27642764
${QUIET_CMD}
27652765
${YOSYS}

0 commit comments

Comments
 (0)