Here, you can see some examples of conversions from MyHDL designs to VHDL and/or Verilog.8
A small combinatorial design
The example is a small combinatorial design, more specifically the binary to Gray code converter:
You can create an instance and convert to Verilog and VHDL as follows:
The generated Verilog code looks as follows:
The generated VHDL code looks as follows:
"Home". myhdl.org. http://www.myhdl.org/ ↩
"Conversion to Verilog and VHDL — MyHDL 0.11 documentation". http://docs.myhdl.org/en/stable/manual/conversion.html ↩
"What's new in MyHDL 0.6 — MyHDL 0.11 documentation". http://docs.myhdl.org/en/stable/whatsnew/0.6.html#conversion-of-test-benches ↩
"What's new in MyHDL 0.6 — MyHDL 0.11 documentation". http://docs.myhdl.org/en/stable/whatsnew/0.6.html#conversion-of-lists-of-signals ↩
"What's new in MyHDL 0.6 — MyHDL 0.11 documentation". http://docs.myhdl.org/en/stable/whatsnew/0.6.html#conversion-output-verification ↩
"Co-simulation with Verilog — MyHDL 0.11 documentation". http://docs.myhdl.org/en/stable/manual/cosimulation.html ↩
"MyHDL: A Python-Based Hardware Description Language | Linux Journal". http://www.linuxjournal.com/article/7542 ↩
"Conversion examples — MyHDL 0.11 documentation". http://docs.myhdl.org/en/stable/manual/conversion_examples.html ↩