def _update_const_dict(self):
        params = self.mod.get_params()
        localparams = self.mod.get_localparams()

        unresolved = OrderedDict()
        unresolved.update(params)
        unresolved.update(localparams)

        prev_size = len(unresolved) + 1
        
        while unresolved and len(unresolved) < prev_size:
            prev_size = len(unresolved)
            unresolved = self._update_const_dict_iter(unresolved)
            
        if unresolved:
            varlist = ', '.join(unresolved.keys())
            raise ValueError('Not all parameters could be resolved: %s' % varlist)
dataset/ETHPy150Open PyHDI/veriloggen/veriloggen/resolver/resolver.py/ModuleReplaceVisitor._update_const_dict/original