OpenCores
no use no use 1/1 no use no use
VHDL to Verilog
by f34rbod on Dec 3, 2009
f34rbod
Posts: 2
Joined: Jul 19, 2009
Last seen: May 4, 2011
Hi everyone,

I would like to know where it's possible to get VHDL to Verilog code converters?
Any kind of help is appreciated.
RE: VHDL to Verilog
by arif_endro on Dec 4, 2009
arif_endro
Posts: 1
Joined: Jan 2, 2005
Last seen: Jul 1, 2010
You could use VASY from alliance tools, specify the output format to verilog output with command option -v.
RE: VHDL to Verilog
by jeremybennett on Dec 4, 2009
jeremybennett
Posts: 689
Joined: May 29, 2008
Last seen: Feb 9, 2012

Hi f34rbod,

There have been a number of commercial attempts in the last decade, but none of them have been successful. They often work for small examples, but fail for large complex designs. There are a number of reasons for this:

  1. Verilog and VHDL both have complex, and in many cases poorly defined IEEE specifications. Ambiguities in the Verilog IEEE standard must be resolved by seeing how Verilog XL behaves. That is not a good basis on which to make a machine translation.

  2. Verilog and VHDL have different simulation semantics. It is extraordinarily hard to reconcile these, so simulations (and hence regression tests) are not consistent.

  3. VHDL is a bigger and more complex language than Verilog, so some constructs (for example assertions) do not have a true equivalent.

In practice this ceased to be a commercially worthwhile exercise once all the mainstream tools supported mixed Verilog and VHDL.

You will note that in the past IP providers like ARM provided all their IP in both Verilog and VHDL versions. Now they only provide a single language version, relying on tools to handle any language mixing required.

However this remains a problem for the open source community, since the existing tools (GHDL, Icarus Verilog, Verilator) are currently single language.

Daryl Stewart at the University of Cambridge (now at ARM) wrote his PhD dissertation on the formal semantics of Verilog and VHDL. I can't find it online, but you should be able to gain access to it through any University library. You may also like to look at Cambridge University Computer Laboratory Technical Report 485, Three notes on the interpretation of Verilog by Daryl Stewart and Myra Van Inwegen.

Sorry this doesn't give you a solution, but I hope it is useful background.

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

RE: VHDL to Verilog
by jeremybennett on Dec 4, 2009
jeremybennett
Posts: 689
Joined: May 29, 2008
Last seen: Feb 9, 2012

I have discovered that there is an archive copy of Daryl Stewart's work and the paper with Myra Van Inwegen online:

I understand this copy of the thesis is prior to its final corrections, so treat with the appropriate caution.

Jeremy

RE: VHDL to Verilog
by f34rbod on Dec 4, 2009
f34rbod
Posts: 2
Joined: Jul 19, 2009
Last seen: May 4, 2011
@arif_endro---thanks for the info. i will surely try it out


@jeremy---Now thats a very good insight into it. I appreciate your time and help.

Thank you both of u :)
RE: VHDL to Verilog
by i on Jun 16, 2010
i
Posts: 2
Joined: Jun 15, 2010
Last seen: Jun 17, 2010
Hi,

I'm looking for translator from VHDL to Verilog.
I have a code written in VHDL and I need to translate it to Verilog.
Maybe you used one?
Please, any help is good help.

Thanx
RE: VHDL to Verilog
by Fylden on Jun 22, 2010
Fylden
Posts: 1
Joined: Jun 21, 2010
Last seen: Dec 5, 2010
There is no approach except for how to learn VHDL. But when you will learn you can write in both languages using their strengths.
no use no use 1/1 no use no use
© copyright 1999-2012 OpenCores.org, equivalent to ORSoC AB, all rights reserved. OpenCores®, registered trademark.