The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 12:28am
Pages: 1
Send Topic Print
Verilog-A to C Compiler (Read 750 times)
rajdeep
Senior Member
****
Offline



Posts: 220
UK
Verilog-A to C Compiler
Mar 18th, 2008, 10:08pm
 
Hi all,

Is there any free version of a compiler that translates Verilog-A to C?
If any please let me know.

Thanks in advance,
Rajdeep
Back to top
 
 

Design is fun, verification is a requirement.
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Verilog-A to C Compiler
Reply #1 - Mar 19th, 2008, 6:00am
 
There's a SourceForge project "ADMS" that converts Verilog-A to XML and then to C.  The XML to C part requires you to have a special script that defines the API for the simulator you're expecting to link to.  There's a free simulator "zspice" that is supposed to work with ADMS, I forget if you have to install it also or if ADMS comes with that script; if ADMS has the script, then you could generate the C output if that's all you wanted, and not link it into zspice.

http://sourceforge.net/projects/mot-adms/
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Marq Kole
Senior Member
****
Offline

Hmmm. That's
weird...

Posts: 122
Eindhoven, The Netherlands
Re: Verilog-A to C Compiler
Reply #2 - Mar 19th, 2008, 2:03pm
 
ADMS is geared towards compact modelling and will not understand all Verilog-A constructs, though. If I recall correctly, it does not support events other than the global events (initial_step and final_step). But correct me if I'm mistaken...

Cheers,
Marq
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Verilog-A to C Compiler
Reply #3 - Mar 20th, 2008, 6:17am
 
Of course, Rajdeep didn't say anything about why he wants the compiler.  If you want events to be handled, then you must have some plan to incorporate the output in a simulator, and you'd better get the Verilog-A compiler that generates object files for your simulator.  And, of course, ADMS is open-source, so you're free to add support for whatever you want. Smiley

My guess was that he was interested in taking, say, the Verilog-A code for a compact model and converting it to C, with begin/end changed to braces, etc.
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.