The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 23rd, 2019, 12:19pm
Pages: 1
Send Topic Print
How to model strength using WREAL  ? (Read 616 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
Copyright 2002-2019 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.