• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. case Statement in range type spec

Stats

  • Replies 0
  • Subscribers 129
  • Views 16
  • Members are here 0

case Statement in range type spec

Kevin T Buck
Kevin T Buck 1 hour ago

I'm trying to create a case statement for an output specification in maestro. An example of the first few outputs is the following:

"range (case(VAR(""ical_sel"") (""0"" 0.02) (t 0))) (case(VAR(""ical_sel"") (""0"" 0.03) (t 0.001)))"

"range (case(VAR(""ical_sel"") (""1"" 0.02) (t 0))) (case(VAR(""ical_sel"") (""1"" 0.03) (t 0.001)))"

"range (case(VAR(""ical_sel"") (""2"" 0.02) (t 0))) (case(VAR(""ical_sel"") (""2"" 0.03) (t 0.001)))"

"range (case(VAR(""ical_sel"") (""3"" 0.02) (t 0))) (case(VAR(""ical_sel"") (""3"" 0.03) (t 0.001)))"

I've tried using with and without quotes for the variable type and also tried using ical_sel directly without wrapping it in the VAR operator (two sets of double quotes are shown in the text file output, in the maestro view there is only one double quote).

The ical_sel variable in the design variable list looks like this: {From/To}Linear:0:1:3{From/To}.

This is an ams simulation, I've used this type of expression in the past using spectre without any problem and from the documentation and testing in the CIW it seems like the case statement should work as expected but the output is always evaluated with the (t 0) or (t 0.001) case.

Tool version is IC23.1-64b.ISR16.19.

  • Cancel
  • Sign in to reply

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information