From efdc9ecef90f784a8b576bec611bee0fdc5455e9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 12 Oct 2022 14:35:43 +0200 Subject: [PATCH] build/vhd2v_converter: Always do params -> constants translation. Useful when instance is done in the code but params are just passed to VHD2VConverter. --- litex/build/vhd2v_converter.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/litex/build/vhd2v_converter.py b/litex/build/vhd2v_converter.py index 1074d5b41..e4f0557a4 100644 --- a/litex/build/vhd2v_converter.py +++ b/litex/build/vhd2v_converter.py @@ -122,14 +122,11 @@ class VHD2VConverter(Module): ip_params = dict() generics = [] - if self._add_instance: - for k, v in self._params.items(): - if k.startswith("p_"): - ys.append("-g" + k[2:] + "=" + str(v) + " \\") - else: - ip_params[k] = v - else: - ip_params = self._params + for k, v in self._params.items(): + if k.startswith("p_"): + ys.append("-g" + k[2:] + "=" + str(v) + " \\") + else: + ip_params[k] = v from litex.build import tools import subprocess