Skip to content

Commit

Permalink
Update SConstruct to fix issue with EHXPLLL and related modules
Browse files Browse the repository at this point in the history
iverilog fails compilation when working with ECP5 primitives such as EHXPLLL. Not exactly sure this is the correct fix, but linking "ecp5/cells_bb.v" (since that's where the EHXPLLL definition is) appears to allow compilation to proceed.
  • Loading branch information
TeaOfJay authored Apr 17, 2024
1 parent b9ca121 commit bbde473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apio/resources/ecp5/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def iverilog_generator(source, target, env, for_signature):
# end
is_interactive_sim = is_testbench and 'sim' in COMMAND_LINE_TARGETS
interactive_sim_flag = f'-D INTERACTIVE_SIM' if is_interactive_sim else ""
result = 'iverilog {0} -o $TARGET {1} {2} -D NO_INCLUDES "{3}/ecp5/cells_sim.v" $SOURCES'.format(
result = 'iverilog {0} -o $TARGET {1} {2} -D NO_INCLUDES "{3}/ecp5/cells_bb.v" "{3}/ecp5/cells_sim.v" $SOURCES'.format(
IVER_PATH, vcd_output_flag, interactive_sim_flag, YOSYS_PATH)
return result

Expand Down

0 comments on commit bbde473

Please sign in to comment.