Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression engine for CACE datasheet #121

Open
areda0 opened this issue Oct 3, 2024 · 2 comments
Open

Expression engine for CACE datasheet #121

areda0 opened this issue Oct 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@areda0
Copy link
Contributor

areda0 commented Oct 3, 2024

A feature that's too useful is that CACE be able to parse expressions, reference conditions, substitutes for variables, and evaluates the final numeric value. The use case is, for example, to define the spec target/limit as a function in one of the conditions so that the spec target varies with varying conditions. referring to the snapshot, CACE should be able to evaluate "Vdvdd - 0.2" and compare the result against that value.
image

@mole99 mole99 changed the title CACE should be able to parse expressions Expression engine for CACE datasheet Oct 3, 2024
@mole99
Copy link
Member

mole99 commented Oct 3, 2024

We can take a look at the expression-engine in OpenLane 2 and see which parts could apply to CACE.

There are quite a lot of design decisions to be made. In which sections of the datasheet can expressions be used?
Can expressions refer to all keys in the datasheet or only to conditions? If the former, how do we specify the "path" to the key? Or can only keys in the same dictionary be referenced? How do expressions behave together with includes?

This is a very useful feature, but requires careful planning for the implementation.

@mole99 mole99 added the enhancement New feature or request label Oct 3, 2024
@areda0
Copy link
Contributor Author

areda0 commented Oct 3, 2024

@mole99

  • Expressions can be used anywhere a numeric value is defined >> having expressions in Parameter specs and conditions values is useful.
  • I think it can refer to conditions and measured parameters, both would have useful use cases . But a parameter is a simulation result and would require to feedback the parameter value after a specific sim has completed.

@RTimothyEdwards
what do you think, Tim?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants