Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestion: add a ghdl_write_vhdl command to yosys through the plugin #112

Open
rlee287 opened this issue Apr 22, 2020 · 5 comments

Comments

@rlee287
Copy link
Contributor

rlee287 commented Apr 22, 2020

This would greatly help with simulating mixed-language projects, which could look like the following:

Verilog testbench (which should be possible now):

  1. Use yosys to synthesize the modules (which may be a mix of Verilog and VHDL sources)
  2. write_verilog the top module.
  3. Use Icarus Verilog with the Veriog testbench, which instantiates the device under test from the output of the yosys synthesis.

VHDL testbench (which would be made possible by the command suggested above):

  1. Use yosys to synthesize the modules (which may be a mix of Verilog and VHDL sources)
  2. ghdl_write_vhdl the top module.
  3. Use GHDL with the VHDL testbench, which instantiates the device under test from the output of the yosys synthesis.
@rlee287 rlee287 changed the title Feature suggestion: add a ghdl_write_vhdl command to yosys Feature suggestion: add a ghdl_write_vhdl command to yosys through the plugin Apr 22, 2020
@tgingold
Copy link
Member

tgingold commented Apr 23, 2020 via email

@tgingold tgingold pinned this issue May 7, 2020
@rlee287
Copy link
Contributor Author

rlee287 commented May 20, 2020

I am going through the write_verilog file now to see how it is structured and what kinds of changes would be necessary. However, it also looks like ghdl --synth outputs VHDL to the standard output. Would it make more sense to try to repurpose some of the code from ghdl --synth, or would it be better to work directly with RTLIL the way write_verilog does?

@tgingold
Copy link
Member

tgingold commented May 21, 2020 via email

@Xiretza
Copy link
Contributor

Xiretza commented May 21, 2020

The code that turns VHDL into a netlist is also written in Ada, so shouldn't it be possible to create a bridge in the other direction as well?

@tgingold
Copy link
Member

tgingold commented May 21, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants