build/vhd2v_converter: Always do params -> constants translation.

Useful when instance is done in the code but params are just passed to VHD2VConverter.
This commit is contained in:
Florent Kermarrec 2022-10-12 14:35:43 +02:00
parent 03a5f16d70
commit efdc9ecef9
1 changed files with 5 additions and 8 deletions

View File

@ -122,14 +122,11 @@ class VHD2VConverter(Module):
ip_params = dict() ip_params = dict()
generics = [] generics = []
if self._add_instance:
for k, v in self._params.items(): for k, v in self._params.items():
if k.startswith("p_"): if k.startswith("p_"):
ys.append("-g" + k[2:] + "=" + str(v) + " \\") ys.append("-g" + k[2:] + "=" + str(v) + " \\")
else: else:
ip_params[k] = v ip_params[k] = v
else:
ip_params = self._params
from litex.build import tools from litex.build import tools
import subprocess import subprocess