Closed rodrigomelo9 closed 4 years ago
This isn't an issue with the yosys plugin, but rather ghdl itself - see ghdl/ghdl#938.
Hi Xiretza, thanks for the information. I used GHDL for years for simulation, but I am new with synthesis. I am using the plugin (because I was testing Yosys against ISE/Vivado in my repository).
Where I must post my issues? In the GHDL repository when the complaint is in the section 1. Executing GHDL. of Yosys and here if other sections? Can I assume that the error in this first section of Yosys is the same that doing synthesis with GHDL? (I assume yes because it is solved by libghdl. Am I right?).
This info can be added into README.md as a notice and could be useful to have a location (probably in the ghdl repo, because is where --synth
support is) with the section Unsupported known features (to be implemented) or something similar :P (if exists, please point me).
Regards
As a rule of thumb: if ghdl --synth ...
throws the same error as yosys -p 'ghdl ...'
, then the issue is with the actual synthesis backend in ghdl. The yosys plugin really just translates between the ghdl and yosys intermediate representations, so most issues with the plugin are missing gate transformations shown as Unsupported: instance \x of $gate
(see #96 for an example of that).
@rodrigomelo9, precisely, see section Issues of #98. The proposal was not accepted, and we still have separate issue trackers; hence the suggestion by @Xiretza applies. Nonetheless, many issues can be reported in either place and Tristan can move them.
This info can be added into README.md as a notice and could be useful to have a location (probably in the ghdl repo, because is where --synth support is) with the section Unsupported known features (to be implemented) or something similar :P (if exists, please point me).
I believe that the expected location for this type of content is https://ghdl.readthedocs.io/en/latest/development/Synthesis.html. Sources are available in ghdl/ghdl: https://github.com/ghdl/ghdl/tree/master/doc/development.
Naturally, if this repo is going to be kept separate for the yosys plugin only, it would make sense to add a doc
subdir in this repo. It would contain documentation/notes/explanations that are exclusive to the plugin and/or how to co-synthesise mixed-language projects using GHDL + yosys.
I can take care of setting up the publication of the doc
in this repo, either as a separate site or merged into ghdl.rtfd.io.
At some points, there should be a -flatch option, or maybe just a warning for latches.
Is it important to you right now ?
No, is not important. In my opinion, a warning is enough. It can be closed because https://github.com/ghdl/ghdl/issues/938 exists. Regards
Hello. I am analyzing with the plugin (branch ghdl) examples provided by Xilinx. I found that latches are unsupported. Here only one of them as an example:
With ISE, it is only a warning:
I know that they must be avoided, I never left designs with latches, but I think that must be supported by a synthesizer (with a warning of course). Some reasons could be that there are experiments that use them (ring oscillators) and for compatibility with existing designs.
If they are not supported by a design decision, the message could be "unsupported" and documented somewhere (unsupported known things in the README.md?).
Regards