Is it possible to implement constant propagation based on Slang AST? #1055
yanggeorge
started this conversation in
General
Replies: 1 comment 1 reply
-
Yes, it is possible. slang already does constant propagation in subexpressions, though it does not propagate constants through nets and variables, which is more challenging to do but still possible with some work. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just find some part of Spyglass lint rules depend this tech.
Such as DisabledAnd Lint Rule is part of Spyglass, which is used to find disabled AND logic.
Consider the following example:
For the above example, the following violation is reported:Input pin in1 on comb-and gate DisabledAnd.x (master RTL_AND) is tiedlow(connected to DisabledAnd.a)
So is it possible to implement such based on current Slang AST ? I just learns some about constant propagtion tech. I don't know if this appoach is correct.
Beta Was this translation helpful? Give feedback.
All reactions