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()
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