Home > Community > Forums > Custom IC Design > IUS8.2: convert logic value to wreal

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 IUS8.2: convert logic value to wreal 

Last post Fri, Aug 28 2009 6:35 AM by Chris Smit. 1 replies.
Started by Chris Smit 28 Aug 2009 05:12 AM. Topic has 1 replies and 1085 views
Page 1 of 1 (2 items)
Sort Posts:
  • Fri, Aug 28 2009 5:12 AM

    • Chris Smit
    • Not Ranked
    • Joined on Tue, Aug 12 2008
    • Hengelo, Netherlands
    • Posts 5
    • Points 55
    IUS8.2: convert logic value to wreal Reply

    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.

    • Post Points: 5
  • Fri, Aug 28 2009 6:35 AM

    • Chris Smit
    • Not Ranked
    • Joined on Tue, Aug 12 2008
    • Hengelo, Netherlands
    • Posts 5
    • Points 55
    Re: IUS8.2: convert logic value to wreal Reply

     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.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by Chris Smit at 28 Aug 2009 05:12 AM. Topic has 1 replies.