• 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. Mixed-Signal Design
  3. Create an if else expression in ADE Assembler

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 64
  • Views 2838
  • 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

Create an if else expression in ADE Assembler

Aks23
Aks23 10 months ago

Hello,

I'm trying to compare value of a Digital bus and a binary number in a if statement for a expression in ADE Assembler simulator.

I first use the 'value' function to get the y-axis value of a digital bus at a particular time(5us).

Dout_Dig = awvCreateBus("Dout" list(awvAnalog2Digital(v("/DOUT<15>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<14>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<13>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<12>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<11>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<10>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<9>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<8>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<7>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<6>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<5>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<4>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<3>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<2>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<1>" ?result "tran") nil nil 0.9 nil "centre") awvAnalog2Digital(v("/DOUT<0>" ?result "tran") nil nil 0.9 nil "centre")) "Binary")

value(Dout_Dig 5u)

When I evaluate this expression in a buffer, it gives me 0b1111111111111111.

I then use,

if (value(Dout_Dig 5u) == 0b1111111111111111 1 0)

The above if statement always evaluates to 0 (false condition).

What am I doing wrong here?

  • 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