• 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. RF Design
  3. Can i use variables in custom eye mask coordinates?

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 63
  • Views 13442
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can i use variables in custom eye mask coordinates?

amarkanteti
amarkanteti over 5 years ago

Hi,

We are generating custom eye mask for different voltages and data rates. we want to make the eye diagram co ordinates generic. so we used variables in the coordinates. I am using the 6.1.7 version. 

Orginal expression:  

eyeMask(eyeDiagram(v("/E_B2" ?result "tran") 0.0 1.27e-06 2e-08 ?triggerPeriod (1 / VAR("DR")) ?autoCenter t) "s" '(6e-09 2.75) '(8e-09 3.85) '(1.2e-08 3.85) '(1.4e-08 2.75) '(1.2e-08 1.65) '(8e-09 1.65))

 

Modified expression (changes the coordinates to variables):

 

eyeMask(eyeDiagram(v("/E_B2" ?result "tran") 0.0 1.27e-06 2e-08 ?triggerPeriod (1 / VAR("DR")) ?autoCenter t) "s" '(VAR(“tmiddleX1”) VAR(“ VMIDDLE”)) '(8e-09 3.85) '(1.2e-08 3.85) '(VAR(“tmiddleX2”) VAR(“VMIDDLE”)) '(1.2e-08 1.65) '(8e-09 1.65))

 

where:

VAR(“tmiddleX1”) is 6n

VAR(“VMIDDLE”) is 2.75V

VAR(“tmiddleX2”) is 14n

 

These points are middle ones in hexagon shape eye mask. After using the variables we are seeing rectangular waveforms.  Can you please help me out how to use the variables in eye mask's co ordinates.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    I didn’t test this, but the single quoted lists will prevent evaluation for everything inside the lists. So I think:

    eyeMask(eyeDiagram(v("/E_B2" ?result "tran") 0.0 1.27e-06 2e-08 ?triggerPeriod (1 / VAR("DR")) ?autoCenter t) "s" '(VAR(“tmiddleX1”) VAR(“ VMIDDLE”)) '(8e-09 3.85) '(1.2e-08 3.85) '(VAR(“tmiddleX2”) VAR(“VMIDDLE”)) '(1.2e-08 1.65) '(8e-09 1.65))

    should be:

    eyeMask(eyeDiagram(v("/E_B2" ?result "tran") 0.0 1.27e-06 2e-08 ?triggerPeriod (1 / VAR("DR")) ?autoCenter t) "s" list(VAR(“tmiddleX1”) VAR(“ VMIDDLE”)) '(8e-09 3.85) '(1.2e-08 3.85) list(VAR(“tmiddleX2”) VAR(“VMIDDLE”)) '(1.2e-08 1.65) '(8e-09 1.65))

    The literal numbers don’t matter if they are evaluated or not, because they are literal - but in general using ‘(x y z) means that nothing inside the list is evaluated - it is used literally.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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.

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

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