The Designer's Guide Community
Forum
Models in Minutes
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines. Dec 16th, 2018, 1:01am
  HomeHelpSearchLoginRegisterPM to admin  
 
Pages: 1
Send Topic Print
How to model strength using WREAL  ? (Read 430 times)
Ravi Shekhda
New Member
*
Offline



Posts: 1

How to model strength using WREAL  ?
Mar 01st, 2018, 8:56pm
 
Hi,

    I have tried strength modelling (strong1/strong0/weak1/weak0...) in Verilog-D.
   
     But, Can you suggest me, How to model strength using wreal in Verilog-AMS ?

     I have tried below model....
////////////////////////////////////////////////////////////////////////////////

 assign (strong1 , strong0) #2 pad_int     =   ( pu_strng === 1'b0 && pd_strng === 1'b0 ) ? `VDDA :
                                                                  ( pu_strng === 1'b1 && pd_strng === 1'b1 ) ? `VSSA :
                                                                  ( pu_strng === 1'b0 && pd_strng === 1'b1 ) ? (`VDDA/2) : `wrealZState ;
         

assign (weak1 , weak0) #5 pad_int =  ( pu_weak === 1'b0 && pd_weak === 1'b0 ) ? `VDDA :
                                                         ( pu_weak === 1'b1 && pd_weak === 1'b1 ) ? `VSSA :
                                                         ( pu_weak === 1'b0 && pd_weak === 1'b1 ) ? (`VDDA/2) : `wrealZState ;

///////////////////////////////////////////////////////////////////////////////


While simulation of above design, I am not getting any syntax error. But, not getting expected  output.

i.e.  
   In case of pu_strng = 0 and pd_weak=1 ====> Output getting X
   In case of pd_strng = 1 and pu_weak=0 ====> Output getting X


Thanks
-Ravi Shekhda
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Trouble viewing this site? Copyright © 2002-2018 Designer's Guide Consulting. 'Designer's Guide' is a registered trademark of Designer's Guide LLC. All rights reserved.

Our colleges are not as safe as they seem. Sexual assault is pervasive and the treatment of the victim by the adminstration is often as damaging as the assault: Campus Survivors, Campus Survivors Forum.

Some of our other sites that you might find useful: Avendesora, Inform and QuantiPhy.