|
The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> AMS Simulators >> How to model strength using WREAL �? https://designers-guide.org/forum/YaBB.pl?num=1519966583 Message started by Ravi Shekhda on Mar 1st, 2018, 8:56pm |
|
Title: How to model strength using WREAL �? Post by Ravi Shekhda on Mar 1st, 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 |
|
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |