Skip to content

Commit f319ebe

Browse files
authored
Merge pull request #648 from roger-hujin/ecp5-fix
Fix sim error about "Unknown module type: EHXPLLL" with ECP5.
2 parents fc4a19d + 38c2e08 commit f319ebe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apio/scons/plugin_ecp5.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def __init__(self, apio_env: ApioEnv):
4444
self.database_path = trellis_path / "database"
4545
self.yosys_lib_dir = yosys_path / "ecp5"
4646
self.yosys_lib_file = yosys_path / "ecp5" / "cells_sim.v"
47+
self.yosys_lib_exclude_file = yosys_path / "ecp5" / "cells_bb.v"
4748

4849
def plugin_info(self) -> ArchPluginInfo:
4950
"""Return plugin specific parameters."""
@@ -156,6 +157,7 @@ def action_generator(source, target, env, for_signature):
156157
is_interactive=apio_env.targeting("sim"),
157158
lib_dirs=[self.yosys_lib_dir],
158159
lib_files=[self.yosys_lib_file],
160+
extra_params=["-D NOT_INCLUDES {}".format(self.yosys_lib_exclude_file)]
159161
),
160162
]
161163
return action

0 commit comments

Comments
 (0)