+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Junior Member level 3
    Points: 1,517, Level: 8
    Achievements:
    7 years registered

    Join Date
    Mar 2011
    Location
    coimbatore,India
    Posts
    27
    Helped
    5 / 5
    Points
    1,517
    Level
    8

    what is the difference between real and realtim in verilog

    i would like to know friends the different between register data types of real and realtime pls urgent

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 33,613, Level: 44
    ckshivaram's Avatar
    Join Date
    Apr 2008
    Location
    villingen (Germany) / Bangalore
    Posts
    5,070
    Helped
    2158 / 2158
    Points
    33,613
    Level
    44
    Blog Entries
    1

    Re: what is the difference between real and realtim in verilog

    ime is a 64-bit integer type value, which will always ignore fracional part. Whereas, realtime can store a real value for simulation time.

    As you may be knowing, Verilog has inbuilt system tasks $time and $realtime. $realtime gives the real value of time. However, the precision depends on the timescale precision value.

    According to time-precision value given, the simulator will round off the simulation time value given by $realtime.

    For example, `timescale 10ns/1ns implies that the time will be having precision upto one digit after decimal point.
    " It is so simple to be happy,
    but it is so difficult to be simple"


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Newbie level 2
    Points: 464, Level: 4

    Join Date
    May 2010
    Location
    Bangalore
    Posts
    2
    Helped
    1 / 1
    Points
    464
    Level
    4

    Re: what is the difference between real and realtim in verilog

    hIII...
    Thanks for your answer but please note that the question is not difference between $time and $realtime
    IT is between real and realtime........hence please post proper answer

    Real is like double in C/C++ which has 8bytes size,1023 expoenet and 52 -bit mantisa,range is 1.7E-308 to 1.7E+308,with atleast 15 digits of precision while realtime is identical to real but it will give time value based on the `timescale precision


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  4. #4
    Junior Member level 3
    Points: 1,517, Level: 8
    Achievements:
    7 years registered

    Join Date
    Mar 2011
    Location
    coimbatore,India
    Posts
    27
    Helped
    5 / 5
    Points
    1,517
    Level
    8

    Re: what is the difference between real and realtim in verilog

    thank you rajiv i hope i got correct ans



--[[ ]]--