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:
parent
03a5f16d70
commit
efdc9ecef9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue