• 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. IUS8.2: convert logic value to wreal

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 14086
  • 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

IUS8.2: convert logic value to wreal

Chris Smit
Chris Smit over 16 years ago

Hi,

 I am using IUS8.2 (IC6.1.3) and try to use the new wreal functionality (i.e. multiple drivers for a wreal net and use a resolution function for that). Now I am stuck at how a logic value translates into a wreal value, see example below.

module foo(out)

output out;
wreal out;

reg reg_int;

initial reg_int = 1'bz;
assign out = reg_int;

end module

To what value will out resolve?

The Z state of reg_int resolves into a 0, this is also true for the X state. Is there some possibility that it translates into `wrealZState and `wrealXState repectively?

 Chris.

  • Cancel
  • Chris Smit
    Chris Smit over 16 years ago

     Ok, I think I figured it out. In stead of the one assign statement use the following:

    assign out = (reg_int === 1'bx) ? `wrealXState : `wrealZState ;
    assign out = (reg_int === 1'b1) ? 1.234 : `wrealZState ;
    assign out = (reg_int === 1'b0) ? 0.234 : `wrealZState ;

     Chris.

    • 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