Skip to content

Commit

Permalink
Merge pull request #252 from umarcor/fix-read_verilog
Browse files Browse the repository at this point in the history
setups/osflow/synthesis: recent versions of yosys need command 'read_verilog'
  • Loading branch information
stnolting authored Jan 8, 2022
2 parents b158724 + 5cc8078 commit 8c4f2e0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setups/osflow/synthesis.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ neorv32-obj08.cf: ${DEVICE_LIB}-obj08.cf ${NEORV32_SRC}
work-obj08.cf: neorv32-obj08.cf ${DESIGN_SRC} ${BOARD_SRC}
ghdl -a $(GHDL_FLAGS) --work=work ${DESIGN_SRC} ${BOARD_SRC}

ifeq ($(strip $(NEORV32_VERILOG_ALL)),)
READ_VERILOG =
else
READ_VERILOG = read_verilog ${NEORV32_VERILOG_ALL};
endif

${IMPL}.json: work-obj08.cf $(NEORV32_VERILOG_ALL)
$(YOSYS) $(YOSYSFLAGS) \
-p \
"$(GHDLSYNTH) $(GHDL_FLAGS) --no-formal $(TOP); \
synth_${YOSYSSYNTH} \
$(READ_VERILOG) synth_${YOSYSSYNTH} \
-top $(TOP) $(YOSYSPIPE) \
-json $@" $(NEORV32_VERILOG_ALL) 2>&1 | tee yosys-report.txt
-json $@" 2>&1 | tee yosys-report.txt

0 comments on commit 8c4f2e0

Please sign in to comment.