Skip to content

Commit

Permalink
Only adds model_pkg as a package to avalon wrapper if the model is sa…
Browse files Browse the repository at this point in the history
…mple based
  • Loading branch information
fe-wickham committed Oct 20, 2020
1 parent 25a4bd6 commit 93e5272
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ipcore/avalon_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,13 @@ def generate_avalon_wrapper(registers, audio_in, audio_out, entity_name, working
"numeric_std"
]),
Library("work", [
"fixed_resize_pkg",
f"{entity_name}_pkg"
"fixed_resize_pkg"
])
]

if is_sample_based:
libraries[0].packages.append(f"{entity_name}_pkg")

avalon_wrapper = EntityFile(
avalon_entity.name, avalon_entity, avalon_architecture, libraries)
avalon_wrapper.write(working_dir)
Expand Down

0 comments on commit 93e5272

Please sign in to comment.