hdl.ast: deprecate Const.normalize.

Tracking issue #754.
This commit is contained in:
Catherine 2023-02-27 18:17:25 +00:00
parent fcc4f54367
commit f602ce1f8f
4 changed files with 13 additions and 6 deletions

View file

@ -69,7 +69,7 @@ class PyCoroProcess(BaseProcess):
if isinstance(command, Value):
exec(_RHSValueCompiler.compile(self.state, command, mode="curr"),
self.exec_locals)
response = Const.normalize(self.exec_locals["result"], command.shape())
response = Const(self.exec_locals["result"], command.shape()).value
elif isinstance(command, Statement):
exec(_StatementCompiler.compile(self.state, command),