Closed dan-fritchman closed 1 year ago
Or, without any changes, this just requires passing Literal
to the add
method, or appending it to the sim attributes.
E.g.
@hs.sim
class MySim:
# ... all the other stuff
# Then add literals
M.add(h.Literal("whatever"))
Seems fine to stick with.
This:
Now generates:
And it should;
Literal
is an immutablefrozen
type.Either:
Sim
like the (somewhat recently updated)Module
, in whichLiteral
s are "separate", orfrozen
-ness ofLiteral
, which I believe will sprawl elsewhere