The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 18th, 2024, 4:19am
Pages: 1
Send Topic Print
sformat equivalent in Verilog-A (Read 2197 times)
ShawnR
New Member
*
Offline



Posts: 1

sformat equivalent in Verilog-A
Jan 03rd, 2013, 6:48am
 
I am trying to convert a real to a string in Verilog-A.  In Verilog I would use sformat.
Any ideas how to do it in Verilog-A?
Shawn
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: sformat equivalent in Verilog-A
Reply #1 - Jan 7th, 2013, 5:53am
 
What do you intend to do with the string afterwards?  Most simulators that support Verilog-A allow you to $strobe or $display with the usual C-style formatting (%e or %f), if you want to output the string.  Many simulators also support $fstrobe.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 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.